Question: Sir i am stuck for this question program, which performs the following actions: 1.Write the header of the C program 2.Write the beginning of the

Sir i am stuck for this question

program, which performs the following actions:

1.Write the header of the C program

2.Write the beginning of the main function

3.Initialize a string called firststring with the constant value "C programming is nice.. using a string pointers

4.Initialize a string called second_string with the constant value "C language is difficult. using a string pointer

5.Display first_string and second string in two consecutive lines

6.Display a message that shows If the two strings have the same length (hint: use sizeof).

7.Assume now that both strings have the same size. Write only three statements to swap the two strings' contents (swap means the content of the first string becomes the content of the second string and vice-versa)

8.Display again the two strings to check whether they have been swapped

9.Write the correct symbol to close the main function

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