Question: All Sections Surprise.c: #include int main(){ // OK, nothing is wrong with this printf(-1 and -2, which is bigger? >> %s , (-1 >-2) ?-1:-2);

 All Sections Surprise.c: #include int main(){ // OK, nothing is wrong

All Sections Surprise.c: #include int main(){ // OK, nothing is wrong with this printf("-1 and -2, which is bigger? >> %s ", (-1 >-2) ?"-1":"-2"); // OK, nothing is wrong with this printf("-1 and 2, which is bigger? >> %s ", \ (-1 > 2)?"-1":"2"); // What??? printf("-1 and 0, which is bigger? >> %s ", (-1 > OU)?"-1":"OU"); printf("-1 and 99999, which is bigger? >> %s ", (-1 > 99999U) ? "-1":"99999U"); } Question 1: What is odd about the results printed out by the program? Question2: Why would this program behave this way

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!