Question
a.
Both can be used interchangeably
b.
Scanf is delimited by end of line, while gets is not
c.
Scanf is delimited by blank, while gets is not
d.
All of above
Posted under C Programming
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 optional) and get is true?
Similar Questions
Discover Related MCQs
Q. If integer needs two bytes of storage, then maximum value of a signed interger is
View solution
Q. The minimum number of temporary variables needed to swap the contents of two variables is
View solution
Q. If s and b are integers then purpose of the following program fragment is to
b = s + b ;
s = b - s ;
b = b - s ;
View solution
Q. If integer needs two bytes of storage, then maximum value of a signed integer is
View solution
Q. printf ( "%d" , printf ( "tim" ) ):
View solution
Q. Consider the statements:
putchar ( getchar ( ));
putchar(getchar( ));
If
a
b
is the input, the output will be
View solution
Q. Literal means
View solution
Q. Which of the following are true regardless of the implementation ?
View solution
Q. Choose the correct statements
View solution
Q. Choose the correct statements
View solution
Q. Choose the correct statements
View solution
Q. Which of the following comments about wide characters is/are true ?
View solution
Q. Which of the following is true of external variables?
View solution
Q. Choose the correct statements
View solution
Q. The declaration
int x : 4;
means
View solution
Q. As soon as a pointer variable is freed, its value
View solution
Q. Choose the correct statements
View solution
Q. Choose the correct statements
View solution
Q. If a variable can take only integral values from 0 to n. where n is a constant integer, then the variable can be represented as a bit-field whose width is the integral part of (the log in the answers arc to the base 2)
View solution
Q. In a C program constant is defined
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!