-->

Facebook

Jasper Roberts - Blog

Wednesday, April 8, 2015

Write a program to join two strings.

#include <stdio.h>
#include <string.h>


void main()
{
   char str1[50], str2[50];

  printf("enter first string:");
gets(str1);

  printf("enter second string:");
gets(str2);

strcat(str1,str2);


   printf("String : %s", str1);

getch();
}
Write a program to copy one string to another string.
string copy

No comments:

Post a Comment