Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    main()
    {
    int N = 15;
    printf("Size of N is %d, ", sizeof(++N));
    printf("Value of N is %d", N);
    };
    1. Size of N is 4, Value of N is 15
    2. Compilation Error
    3. Garbage value
    4. Size of N is 15, Value of N is 4
    5. None of these
Correct Option: A

Size of N is 4, Value of N is 15



Your comments will be displayed only after manual approval.