17 lines
322 B
C
Raw Normal View History

2025-01-07 21:10:07 +01:00
#include <stdio.h>
#include <string.h>
int main() {
char str1[100] = "This is ", str2[] = "programiz.com ", str3[]="Yes Yes !";
/* concatenates str1 and str2*/
/* the resultant string is stored in str1.*/
strcat(str1, str2);
strcat(str1, str3);
puts(str1);
puts(str2);
puts(str3);
return 0;
}