Saturday, June 11, 2016

strcat function in C program.


//String Processing  - Concatenation using strcat function.

#include<stdio.h>
#include<string.h>
int main()
{
    char str1[10]="12345", str2[10]="abcd";

    strcat(str1,str2);

    puts(str1);
return 0;
}

//Output

12345abcd

No comments:

Post a Comment