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...

how to copy a string without using c function

Answer Posted / valli

main()
{
char s[20],s2[20];
printf("enter the string");
scanf(" %[^\n]",s);
for(i=0;s[i];i++)
s[i]=s2[i];
s2[i]='\0';
printf("%s",s2);
}

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

is it possible to create your own header files?

1169


Write a program in c to replace any vowel in a string with z?

1177


Explain what are linked list?

1094


what are # pragma staments?

2083


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1740


what is a constant pointer in C

1248


How can variables be characterized?

2240


What is meant by high-order and low-order bytes?

1111


what are the different storage classes in c?

1236


Which is best book for data structures in c?

1142


Write a program of advanced Fibonacci series.

1207


Can you write the algorithm for Queue?

2175


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15895


What is the difference between procedural and declarative language?

1190


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2387