Why this code has errors | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why this code has errors

#include <stdio.h> #include<string.h> int main() { char a[60]; char b[60]; char c[]="is the friend of"; char d[]; printf ("The first friend"); gets(a); printf ("The second friend"); gets(b); strcpy(d,(strcat(a,(strcat(b,c))))); puts(d); return 0; }

18th Feb 2022, 5:23 AM
Bong Rush Gaming YT
0 Answers