Saturday, July 27, 2019

String in strcat() function

String in strcat() function:


String in strcat() function


#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char a[]="this is", b[]="cprograms";
clrscr();

strcat(a,b);

puts(a);
puts(b);

getch();
}

Output:





EmoticonEmoticon