Vidyalelo
C Programming · Q226

File Input Output

Programming · C Programming · question 226

Q226

What will be the output of the following C code? #include int main() char n[] = "hello !"; char s[13]; sscanf(n, "%s", s); printf("%s ", s); return 0;

A.
hellonworld!
B.
hello
world!
C.
hello
Answer
D.
hello world!

Answer: Option C

Solution

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