adplus-dvertising
frame-decoration

Question

Which of the following comments regarding the reading of a string, using scanf(with optional) and get is true?

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

Answer: (c).Scanf is delimited by blank, 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 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

Q. The minimum number of temporary variables needed to swap the contents of two variables is

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 ;

Q. If integer needs two bytes of storage, then maximum value of a signed integer is

Q. printf ( "%d" , printf ( "tim" ) ):

Q. Consider the statements:

putchar ( getchar ( ));
putchar(getchar( ));

If
a
b
is the input, the output will be

Q. Literal means

Q. Which of the following are true regardless of the implementation ?

Q. Choose the correct statements

Q. Choose the correct statements

Q. Choose the correct statements

Q. Which of the following comments about wide characters is/are true ?

Q. Which of the following is true of external variables?

Q. Choose the correct statements

Q. The declaration 

  int x : 4;

means

Q. As soon as a pointer variable is freed, its value

Q. Choose the correct statements

Q. Choose the correct statements

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)

Q. In a C program constant is defined