Examveda
Examveda

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: Option D

Solution(By Examveda Team)

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


This Question Belongs to C Program >> C Preprocessor

Join The Discussion

Comments ( 3 )

  1. Dikonda Sursan
    Dikonda Sursan :
    6 years ago

    what is l-value

  2. Examveda
    Examveda :
    7 years ago

    Check out the L value and R value concept of c program

  3. Umang Mahant
    Umang Mahant :
    7 years ago

    what L? y?

Related Questions on C Preprocessor