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 #include int main() { char str1[20],str2[20],str3[20],str4[20]; printf(" Enter a string: "); scanf(" %s",str1); printf(" Enter second string: "); scanf("%s",str2);

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!