Write a C program which does the following: One example output is shown below. The output of your program should have th

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Write a C program which does the following: One example output is shown below. The output of your program should have th

Post by answerhappygod »

Write a C program which does the following:
One example output is shown below. The output of your program
should have the same format. Given
that str1 is "I_like_"
and str2 is "C_Programs!"
Please do not change the provided code.
N.B. The solution will fail if the C compiler generates any
warnings. So please check before answering that no warnings are
created.
For example:
code
#include <stdio.h>
#include <string.h>
int main(void)
{
char str1[40];
char str2[40];

scanf("%s", str1);
scanf("%s", str2);

//type your code here

return 0;
}
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply