Question: C-program using codeblocks b- [ 10%] write the output of the following C program #include #define LEN 12 int mainO char si(LEN]-Fadi char s2(LEN)-Sameh ;

C-program using codeblocks  C-program using codeblocks b- [ 10%] write the output of the

b- [ 10%] write the output of the following C program #include #define LEN 12 int mainO char si(LEN]-"Fadi" char s2(LEN)-Sameh" ; char S3 [LEN]-"Ahmed": char S4LLEN]- strncpy (S4,S2,3) printf("S4 is %s ",S4); printf("The length of s1 printf("strcat (%s,%s) is int res,i, l is %d ", strlen(s1)); ",s2,s3); printf("%s ", strcat (S2, S3)) ; if (strcmp (S1,S2) 0) strcpy (S4,S1); else strcpy (S4,S2); printf("%s ", S4) ; Output here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To understand the output of the C program lets analyze it stepbystep Program Analysis Initialization ... 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 Databases Questions!