C storage Classes and Type Qualifiers | Q - 8

Last Updated :
Discuss
Comments

What is the output of this code?

C
#include <stdio.h>

int main() {
    register int x = 5;
    printf("%d\n", x);
    return 0;
}


Compilation Error

5

0

Undefined behaviour

Tags:
Share your thoughts in the comments