Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

code for copying two strings with out strcpy() function.

Answer Posted / suman_kotte

#inclue<stdio.h>
main()
{
char str1[10],str2[10];
int i=0;
printf("enter the str1");
gets(str1);
while(str1[i]!='\0')
{
str2[i]=str1[i];
i++;
}
puts(str2);
}

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is main return c?

937


How is actual parameter different from the formal parameter?

973


What is signed and unsigned?

1017


Can we increase size of array in c?

923


What is array of pointers to string?

1003


How can I implement a delay, or time a users response, with sub-second resolution?

1036


What is cohesion in c?

925


Where are local variables stored in c?

985


p*=(++q)++*--p when p=q=1 while(q<=6)

1700


What are the benefits of c language?

1112


In which layer of the network datastructure format change is done

1840


code for quick sort?

1989


What is sizeof array in c?

990


What is unary operator?

1053


what are bit fields? What is the use of bit fields in a structure declaration?

2052