-->
Way of C Learning - CPU(2110003)
Facebook
Jasper Roberts
-
Blog
Pages
Home
CPU Syllabus
CPU Theory
CPU Assignments
CPU Experiments
CPU Tutorials
CPU Papers
CPU Books
About Author
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();
}
string copy
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment