Home » C Programming » Variables » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    register auto int num = 12;
    num = 13;
    printf("%d\n", num);
    }
    1. 12 13
    2. 13 12
    3. 12
    4. 13
    5. Compilation Error
Correct Option: E

Compilation Error

main.c: In function ‘main’:
main.c:4:9: error: multiple storage classes in declaration specifiers
register auto int num = 12;



Your comments will be displayed only after manual approval.