#include<stdio.h>
#include <string.h>
int main()
{
char name[20] = "Nandkishor ";
char *surname = "Rawool";
strcat(name, surname);
//This function is used to concatenate two strings
// This function does not add
// space in between two string
printf("Now the name is %s", name);
return 0;
}
OUTPUT--->
Now the name is Nandkishor Rawool
No comments:
Post a Comment