Home / C Programming / C Preprocessor :: Discussion

Discussion :: C Preprocessor

  1. Find the output of the following program.

    #define INC(X) X++

    void main()

    {

    int x=4;

    printf("%d", INC(x++));

    }

  2. A.

     4

    B.

     5

    C.

     6

    D.

     Error

    View Answer

    Workspace

    Answer : Option D

    Explanation :

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


Be The First To Comment