Tuesday, July 14, 2009

What does this c code output? Really simple and Easy!?

Determine the order of execution of operations in the code below. Determine the sequence actively.





{ int A=9,B=3,C=1;


printf(“%d %d %d %d”, A++,--B,C++,A*B*C);


}








nothing I try working for me on this prob! =(

What does this c code output? Really simple and Easy!?
offhand, I believe its..





9 2 1 27





not sure if i'm right though





edit: I just ran it, I'm right, that is what it is. But if you're in a programing class, this is something you do need to figure out for yourself


No comments:

Post a Comment