Contents

Which function is used to compare two strings character by character?
a) strrchr ()                           
b) strcmp ()
c) stricmp ()                         
d) strncmp ()

c

Which function is used to compare specified number of characters in two strings?
a) strrchr ()                           
b) strcmp ()
c) stricmp ()                          
d) strncmp ()

d

Which function is used to compare two string values using the collating sequence specified by setlocate function?
a) strcoll ()                           
b) strcpy ()
c) strncpy ()                          
d) strcspn ()

a

Which function is used to copy one string to another string including terminating null character?
a) strcoll ()                            
b) strcpy ()
c) strncpy ()                          
d) strcspn ()

b

Which function is used to copy one string to another string including terminating null character?
a) strcoll ()                            
b) strcpy ()
c) strncpy ()                         
d) strcspn ()

c

Which function is used to search a string for the first occurrence of a character belonging to set of character in second string?
a) strcoll ()                            
b) strcpy ()
c) strncpy ()                          
d) strcspn ()

d