ExamVeda
Login
Home
This question belongs to C Program C Preprocessor
C Preprocessor
?

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

Answer & Solution
Correct Answer: Option D

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

Examveda
Question posted by Examveda
Community

Join the Discussion

3 Comments
Dikonda Sursan
Dikonda Sursan 8 years ago
what is l-value
Examveda
Examveda 9 years ago
Check out the L value and R value concept of c program
Umang Mahant
Umang Mahant 9 years ago
what L? y?