Vidyalelo
C Programming · Q122

File Input Output

Programming · C Programming · question 122

Q122

What will be the output of the following C code? char str[] =”Good”; scanf(“%s”, str);

A.
compile error
B.
run-time error
C.
good
Answer
D.
logical error

Answer: Option C

Solution

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