WELCOME TO MY BLOG BY SHABEEB.K

C,C++ PROGRAMMING: ADD NEW NAME TO END OF TO ANOTHER STRING.

Search This Blog

Saturday, 3 August 2013

ADD NEW NAME TO END OF TO ANOTHER STRING.


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#include<stdio.h>
#include<conio.h>
void main()
{
char string1[80],string2[80];

clrscr();

printf("ENTER FIRST STRING\n");
scanf("%s",&string1);

printf("ENTER SECOND STRING\n");
scanf("%s",&string2);

strcat(string1,string2);

printf("BOTH STRINGS JOINED TOGETHER IS %s",string1);

getch();
}


                                                         

                                                                      OUTPUT

No comments:

Post a Comment