click on this link......

LinkGrand.com

Wednesday, 23 January 2013

string copy using strcpy inbuilt function

#include<stdio.h>
#include<conio.h>
void main()
{
    char name[25],copy[25];
    clrscr();
    printf("\nEnter your name:");
    scanf("%s",name);
    strcpy(copy,name);
    printf("\nYour name is %s",name);
    printf("\n\ncopied string is  %s",copy);
    getch();
}

string copy using strcpy inbuilt function
string copy using strcpy inbuilt function

string copy using strcpy inbuilt function

No comments:

Post a Comment