Which header declares strcpy() and strcmp()?
-
A
string.h
Correct answer
-
B
stdio.h
-
C
stdlib.h
-
D
ctype.h
Correct answer
A. string.h
12 views
Explanation
The string handling functions strcpy, strcmp, strcat and strlen are declared in string.h.
Reference
Asked in: NTS, PPSC IT, Campus Interviews
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ