Vidyalelo
C Programming · Q128

File Input Output

Programming · C Programming · question 128

Q128

Explain the format string "%5d%s %c"

A.
five characters as a decimal integer, then reads the remaining as a string and then scans the first non-whitespace character
Answer
B.
compile error
C.
run-time error
D.
read first five characters as a decimal and ignore the rest

Answer: Option A

Solution

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