What will be the output of the following C code? [code] #include <stdio.h> int main() { int n; scanf("%d",

Việt Quân

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int n;
        scanf("%d", n);
        printf("%d\n", n);
        return 0;
    }
A. Compilation error
B. Undefined behavior
C. Whatever user types
D. Depends on the standard
 

Tìm kiếm

Back
Top