Home / C Programming / C Preprocessor :: Discussion

Discussion :: C Preprocessor

  1. What will be output after executing following code?

    #include

    # define a 10

    void main()

    {

    printf("%d..", a);

    foo();

    printf("%d", a);

    }

    void foo()

    {

    #undef a

    #define a 50

    }

  2. A.

     10..50

    B.

     10..10

    C.

     0

    D.

     Error

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Explanation Not Provided


Be The First To Comment