C Language - Strings

You Are Here :: Home > C Language > Strings - General Questions

 
7.

If a call to gets is not successful, what gets returned?

A. 1 B. 0
C. nothing D. the first character of the input stream




8.

_____ is the default delimiter with scanf

A. Zero B. The NULL
C. The comma D. none of the above




9.

If we wish to fill up c correctly with the following call to gets, how long should the input data be? (i.e. how many characters long?)

char c[9];
c = gets();

A. 8 B. 9
C. 10 D. 11




10.

With the puts function, the null character is replaced with what?

A. nothing B. a newline
C. a zero D. a blank




11.

____delimits arguments in the command line

A. commas B. newlines
C. whitespace D. zeroes




12.

In a C program the actual value of "ABCDEFG" is

A. 'A' B. 'ABCDEFG'
C. "ABCDEFG" D. an address of the string "ABCDEFG'




« previous

1

2

3

4

5

next »

 
 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on