Contents

Which of the following is automatically append to a character array when it is initialized with string constant?
a) null terminator             
b) number of elements
c) array name                      
d) none of these

a

Which of the following function accepts pointer to a string as an argument and return length of string?
a) strlength                           
b) strlen
c) strcpy                                
d) strcat

b

The strcpy function arguments are…….
a) three pointers  
b) two pointers
c) two addresses 
d) none of these

c

Which of the following function can find one string inside another?
a) strstr                                
b) strcmp
c) strcat                                 
d) none of these

a

Which of the following function is used to copy one string to another string?
a) strstr                                
b) strcmp
c) strcat                                 
d) none of these

a

Which of the following function is used to input data into string?
a) gets                                   
b) puts
c) both a & b                       
d) none of these

a