C Programming Questions & Answers: part2



Software Programming : C Programming QUESTIONS AND ANSWERS :: part2 : 1 to 5

Following Software Programming language Entrance Multiple choice objective type questions and answers will help you in Software Programming 2024 examinations :

1.What is the output of the following statement? Printf(�%v�, 12);

12
12.0
%v
Garbage value
None of the above.

2.The size of an int must be greater than or equal to that of a _________

Long int
Short int
Float
Double
Char.

3.What is the output of the following statements? int b = 5, c = 15, d = 8, e = 8,a; a = b>c?c>d?12:d>e?13:14:15; printf(�%d�, a);

13
14
15
Garbage value
12.

4.What number would be shown on the screen after the following statements of C are executed? char ch; int I; ch=�G�; I=ch-�A�; pirntf(�%d�, I);

6
7
8
5
9.

5.What is the output of the following piece of code? for (i = 0; i<10; i++); printf(�%d�,i);

10
0123456789
Syntax error
0
Infinite loop.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Trust because you are willing to accept the risk, not because it’s safe or certain