..

FreePrograms


  CONTACT US   ABOUT US   PRIVACY  DISCLAIMER

FREE C PROGRAMS 

What is C C vs C++ vs Java Program Structure Data Types in C Basic Rules of C & C++
Functions in C If, Else Conditions Loops in C Switch Case Arrays
Pointers Structures in C Strings in C Command Line Arguments Type Casting
Linked Lists Recursion Binary Trees Inheritance Multiple Inheritance
Templates File I/O Object Oriented Programming Data Structures in C C interview Questions

C programming Tutorial : Free C Programs, C Programs Download

....

It copies the characters of second argument to first argument.

Use of Strcpy( ) Function

#include<stdio.h>

#include<string.h>

void main(void)

{

char str[31]="Vij";str1[32]="ayendra";

printf("\nFirst String is %s\n",str);

printf("Second String is%s=\n",str1);

strcpy(str1,str2);

printf("Resultant String %s\n",str);

}

COPYRIGHT 2009 ALL RIGHTS RESERVED FREECPROGRAMS.COM