Sunday, February 7, 2010

C programming True/False Questions?

1. A function prototype tells the compiler the type of the value that is returned by the function.





2. A function prototype tells the compiler nothing about the value that is returned by the function.





3. If a is a variable of type int, after the statement a = 17.76 has been executed, a has a value of 17.





4. If a is a variable of type int, after the statement a = 17.76 has been executed, a has a value of 18.





5. If a is a variable of type float, after the statement a = 17 has been executed, a has a value of 17 .





6. If a is a variable of type float, after the statement a = 17 has been executed, a has a value of 17.0.





7. If the integer variables a and b are holding the values 0 and 6, respectively, after the statement a += b++ the new values of a and b are both 7.





8. If the integer variables a and b are holding the values 0 and 6, respectively, after the statement a += ++b the new values of a and b are both 7.





Note: please no answers that say ';do ur own work';C programming True/False Questions?
Do your own work, or drop out of school or stop doing whatever this is for.C programming True/False Questions?
Okay, I won't say ';do ur own work';. I will say that I positively, absolutely am offended that you think you are so special that I will do it for you, either today or later when you've become totally reliant on cheating and get a job. The world doesn't have to carry you, we can and often will refuse. So, in closing I will say: Do your own work!

No comments:

Post a Comment