C File =>
/* Write a C program to concatenate two strings using standard library function. */
#include<stdio.h>
#include<string.h>
int main() {
char s1[30],s2[30];
printf("\n Enter String1 : ");
scanf("%s",s1);
printf("\n Enter String2 : ");
scanf("%s",s2);
printf("\n Concatenated String : %s",strcat(s1,s2));
return 0;
}
Comments
Post a Comment
Please do not enter any spam link in message.