17 lines
322 B
C
17 lines
322 B
C
|
#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;
|
||
|
}
|