To use string library function include header file string.h in your program
Answers
Answered by
0
Explanation:
This header file contains all kind of string related function for string manipulation. Some of the functions are : strlen(), strcpy(), strupr(), strlwr(), strrev(), strcmp(), strcmpi(), strcat(), strncpy(), memset().
Answered by
0
Answer:
#include<stdio.h>
#include<string.h>
int main()
{
char str[ ] = "Modify This String To Upper";
printf("%s\n",strupr(str));
return 0;
}
//This program converts all characters of the string into uppercase.
Explanation:
string.h is need to inserted when we need to use string function like strrev,strupr,etc.
Similar questions