Which header file is essential for using strcmp() function?
Answers
Answered by
1
strings.h header file is necessary in order to carry out all the strings related functions. Here
strcmp() is a string function which is used to compare to strings.
In C language use #include<stdio.h> at the beginning of the file.
Thanks
strcmp() is a string function which is used to compare to strings.
In C language use #include<stdio.h> at the beginning of the file.
Thanks
Answered by
0
string.h header file is essential for using strcmp() function
strcmp() header file
- A file having the extension. h is referred to as a header file, which contains common function declarations and macro definitions across many source files.
- The strcmp() is a built-in library function that is declared in the "string.h" header file.
- The string arguments are compared using this function. It lexicographically compares strings, which means it compares both strings character by character.
Similar questions