Vidyalelo
C Programming · Q293

File Input Output

Programming · C Programming · question 293

Q293

What will be the output of the following C code? char str[] = "Hello Nancy“; printf(“ %.7s”, str) ;

A.
Hello Nan
B.
Hello
C.
Hello N
Answer
D.
Hello Nancy

Answer: Option C

Solution

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