Question: Consider S1, S2 and S3 are three string variables. Write a C program that compare S1 and S2 whether they are equal or not equal.

Consider S1, S2 and S3 are three string variables.

Write a C program that compare S1 and S2 whether they are equal or not equal. If they are not equal, concate them. Then copy the contents of S1 to the variable S3 and find out the length of S1, S2 and S3.

Step by Step Solution

3.40 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include int main char S1 mystring1 char S2 mystring2 S3100 int length1 0 int leng... View full answer

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 Programming Questions!