Vidyalelo
C Programming · Q205

File Input Output

Programming · C Programming · question 205

Q205

What will be the output of the following C code? #include int main() int n; scanf("%d", n); printf("%d ", n); return 0;

A.
Compilation error
B.
Undefined behavior
Answer
C.
Whatever user types
D.
Depends on the standard

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board