adplus-dvertising
frame-decoration

Question

Which of the following comments regarding the reading of a string using scanf( with %s option and gets, is true ?)

a.

both can be used interchangebly

b.

scanf is delimited by end of line, while gets is not

c.

scanf  is delimited by blank space, while gets is not

d.

none of above

Answer: (c).scanf  is delimited by blank space, while gets is not

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following comments regarding the reading of a string using scanf( with %s option and gets, is true ?)