C Programming Questions & Answers: part1



Software Programming : C Programming QUESTIONS AND ANSWERS :: part1 : 11 to 15

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

11.Which of the following is a not a keyword in C language?

Void
Volatile
Sizeof
Getchar
Short.

12.Which of the following is not a storage class in C?

Auto
Struct
Extern
Static
Register.

13.What is the output of the following program? #include int c [10]={1,2,3,4,5,6,7,8,9,10}; main () { int a,b=0; for(a=0;a<10;++a) if(c[a]%2= =1) b+=c[a]; printf (�%d�, b);}

20
24
25
30
None of the above.

14.How would you declare a constant of 5 called "MYCONST"?

constant MYCONST = 5;
int myconst = 5;
#define MYCONST 5
constant = 5
#define MYCONST=5.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
A real entrepreneur is somebody who has no safety net underneath them. Henry Kravis