Vidyalelo
C Programming · Q43

C Preprocessor

Programming · C Programming · question 43

Q43

Find the output of the following program. #define INC(X) X++ void main() int x=4; printf("%d", INC(x++));

A.
4
B.
5
C.
6
D.
Error
Answer

Answer: Option D

Solution

Answer: Option D
Solution:

L value is required for this expression (x++) which is illegal.