Vidyalelo
C Programming · Q62

File Input Output

Programming · C Programming · question 62

Q62

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
Answer
C.
Print the last 10 characters of the string
D.
None of the mentioned

Answer: Option B

Solution

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