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

Can stdout be forced to print somewhere other than the screen?

0 Answers  


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

0 Answers  


Please list all the unary and binary operators in C.

3 Answers  


how can you print&scan anything using just one character? :) HINT: printf,scanf similer

2 Answers  


What does calloc stand for?

0 Answers  


Why doesnt the call scanf work?

0 Answers  


How to explain the final year project as a fresher please answer with sample project

0 Answers  


Does c have function or method?

0 Answers  


while initialization of array why we use a[][2] why not a[2][]...?

0 Answers   Aptech,


How can I do peek and poke in c?

0 Answers  


write a programe returns the number of times the character appears in the string

2 Answers  


What is wrong with this statement? Myname = 'robin';

0 Answers  


Categories