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 do i store a paragraph into a string?
for example, if i input a long paragraph, the program will
read the words one by one and concatenate them until no word
is left.



How do i store a paragraph into a string? for example, if i input a long paragraph, the program wil..

Answer / kamlesh

we can use simply.... gets(paragraph)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Why is c used in embedded systems?

0 Answers  


Explain how can you tell whether two strings are the same?

0 Answers  


Explain the use of keyword 'register' with respect to variables.

0 Answers  


How can I split up a string into whitespace-separated fields?

0 Answers  


What does dm mean sexually?

0 Answers  


code for bubble sort?

1 Answers  


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

0 Answers  


How can I do serial ("comm") port I/O?

0 Answers   Celstream,


What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these

3 Answers   IBM,


In which language linux is written?

0 Answers  


What is calloc()?

0 Answers   Adobe,


Write a program to find minimum between three no.s whithout using comparison operator.

4 Answers   IBM,


Categories