Quiznetik

C Language | Set 2

1. What error will be generated on using incorrect specifier for the datatype being read?

Correct : B. run-time error

2. What is the prototype of scanf function?

Correct : A. scanf("controlstring",arg1,arg2,arg3,….,argn);

3. What is the meaning of the following C statement? scanf("%[^\n]s", ch);

Correct : A. read all character except new line

4. What is the qualifying input for the type specifier G?

Correct : C. floating point numbers in the shorter of exponential format

5. scanf() is a predefined function in______header file.

Correct : C. stdio. h

6. What does the C statement given below says? scanf("%7s",ch);

Correct : B. read string with maximum 7 characters