

Strings - Programming
Q1: Which of the following function is more appropriate for reading in a multi-word string?A printf();
B scanf();
C gets();
D puts();
ANS:C - gets(); gets(); collects a string of characters terminated by a new line from the standard input stream stdin
Output:
Enter a string: AptitudeCrack
The string input was: AptitudeCrack
|


For help Students Orientation
Mcqs Questions
One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.