C Preprocessor Questions And Answers.


1.Which of the following is not logical operator?
A. &
B. &&
C. ||
D. !

2.What will the SWAP macro in the following program be expanded to on preprocessing? will the code compile?
A. It compiles
B. Compiles with an warning
C. Compiles and print nothing
D. Not compile

3.In which stage the following code?
A. During editing
B. During linking
C. During linking
D. During preprocessing

4.What will be the output of the program?
A. 12, 6, 12
B. 11, 5, 11
C. 11, 5, Garbage
D. 12, 6, Garbage

5.What will be the output of the program?
A. Result = -100.000000
B. Result = -25.000000
C. Result = 0.000000
D. Result = 100.000000