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

write a program to copy a string without using a string?

Answer Posted / j j ramesh

void main()
{
char str1[100],str2[100];
printf("ENTER THE STRING :");
gets(str1);
for(i=0;str1[i];i++)
str2[i] = str1[i]l
pritf("COPIED : %s",str2);
}

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

1229


What is the scope of static variable in c?

1016


Why is it that not all header files are declared in every C program?

1212


What are keywords in c with examples?

1082


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1070


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

2348


Explain what is the best way to comment out a section of code that contains comments?

1131


Why are algorithms important in c program?

1119


Is c object oriented?

963


How can I invoke another program or command and trap its output?

1095


What are the characteristics of arrays in c?

1049


Write a program to generate the Fibinocci Series

1232


What are identifiers c?

1077


If the size of int data type is two bytes, what is the range of signed int data type?

1021


How are Structure passing and returning implemented by the complier?

1166