Home » C Programming » Constants » Question
  1. What will be the output of the following C code?
     #include <stdio.h>
    int main()
    {
    int n = 020;
    printf("%d", n);
    }
    1. 2
    2. 4
    3. 8
    4. 16
    5. None of these
Correct Option: D

020 is octal representation of 16.



Your comments will be displayed only after manual approval.