WELCOME TO MY BLOG BY SHABEEB.K

C,C++ PROGRAMMING: CONVERT ONE NAME TO ANOTHER.

Search This Blog

Sunday, 1 September 2013

CONVERT ONE NAME TO ANOTHER.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char w1[50],w2[50];

clrscr();

printf("ENTER FIRST WORD\n");

scanf("%s",&w1);
strcpy(w2,w1);
printf("\n %s",w2);

getch();
}
                                                            INPUT

                                                             OUTPUT



No comments:

Post a Comment