by Dinesh Thakur

 

#include<stdio.h> 

void copystr(char*,char*);
void main()
{
             char*str1="I am Dinesh Thakur";
             char str2[30];
             clrscr();
             copystr(str2,str1);
             printf("\n %s",str2);
             getch();
 }
            void copystr(char *dest,char *src)
       {
                while(*src!='\0')
                *dest++=*src++;
                *dest='\0';
                return;
       }
 
Output :
 
I am Dinesh Thakur




About Us

Dinesh ThakurDinesh Thakur is a Columinist and designer with strong passion and founder of Computer Notes. if you have any ideas or any request Find Dinesh Thakur on
linkedin FaceBook Twitter Google Plus