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

What will be the output of the following C code?
Code:
char str[] = "Hello Nancy“;
printf(“\n %.7s”, str) ;
A. Hello Nan
B. Hello
C. Hello N
D. Hello Nancy
 

Tìm kiếm

Back
Top