Strings - General Questions :: Discussion


6.Which of the following function is more appropriate for reading in a multi-word string?
A.printf();
B.scanf();
C.gets();
D.puts();
Answer:  Option  C
Explanation:

gets(); collects a string of characters terminated by a new line from the standard input stream stdin

Tutorial Link:
Published by:Michael Daani

Comments are not available

Post your comments here:

Optional

Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers