Examveda

What is the meaning of the following C statement?
printf(“%10s”, state);

A. 10 spaces before the string state is printed

B. Print empty spaces if the string state is less than 10 characters

C. Print the last 10 characters of the string

D. None of the mentioned

Answer: Option B


This Question Belongs to C Program >> File Input Output

Join The Discussion

Related Questions on File Input Output