Contents

Which function is used to set the first count characters referenced by buffer to specified value?
a) memset ()                        
b) strcat ()
c) strncat ()                           
d) strchr ()

a

Which function is used to append a copy of one string to the end of second string?
a) memset ()                        
b) strcat ()
c) strncat ()                           
d) strchr ()

b

Which function is used to append a specified number of characters one string to the end of second string?
a) memset ()                        
b) strcat ()
c) strncat ()                           
d) strchr ()

b

Which function is used to find first occurrence of a character in string and return a pointer to this character?
a) memset ()                        
b) strcat ()
c) strncat ()                           
d) strchr ()

d

Which function is used to find last occurrence of character in string and return a pointer to this character?
a) strrchr ()                         
b) strcmp ()
c) stricmp ()                          
d) strncmp ()

a

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

b