Answer to Question #259330 in C for Mr Z

Question #259330

3. Write a C program using an online C compiler that implements the following:-

• Declare a string; upon initialization populate the string with a phrase of your choice.

• Declare a second-string; upon initialization populate that string with a different phrase of your choice.

• Display both strings using a single printf() function call.


1
Expert's answer
2021-10-31T12:07:10-0400
#include<stdio.h>
#include<conio.h>


int main()
{
	char phrase1[]="He was waiting for the rain to stop.";
	char phrase2[]="You might enjoy a massage.";




	printf("%s\n%s\n",phrase1,phrase2);
	
	
	getch();
	getch();
	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS