Home / General Knowledge / Testing New :: Discussion

Discussion :: Testing New

  1. Determine Output:

    #define int char

    void main()

    {

    int i = 65;

    printf("sizeof(i)=%d", sizeof(i));

    }

  2. A.

     sizeof(i)=2

    B.

     sizeof(i)=1

    C.

     Compiler Error

    D.

     None of These

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Since the #define replaces the string int by the macro char.


Be The First To Comment