Question: * I need Algorithm of this program in c language* Please Help WRITE A C PROGRAM TO PERFORM BASIC STRING OPERATIONS Program- #include #include int
* I need Algorithm of this program in c language* Please Help
WRITE A C PROGRAM TO PERFORM BASIC STRING OPERATIONS
Program- #include
printf(" Length of string 1=%d ",strlen(str1));
printf(" strcmp(str1,str2)=%d ",strcmp(str1,str2)); printf(" Reverse of string: %s ",strrev(str2)); printf("Enter third string: "); scanf("%s",str3); printf(" Enter fourth string: "); scanf("%s",str4); printf(" The concatenated string is %s ",strcat(str3,str4)); strcpy(str3,str4); printf(" Copied string is =%s ",str3); return 0;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
