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

Hai friends im a i year student. i want to develop my knowledge in the field of TSR in c. How I'm Improve ?

2 Answers  


Just came across this question, felt worth sharing, so here it is I want you to make a C/C++ program that for any positive integer n will print all the positive integers from 1 up to it and then back again! Let's say n=5 I want the program to print: 1 2 3 4 5 4 3 2 1. Too easy you say? Okay then... You can ONLY USE: 1 for loop 1 printf/cout statement 2 integers( i and n) and as many operations you want. NO if statements, NO ternary operators, NO tables, NO pointers, NO functions!

1 Answers  


Tell about strtok & strstr functions

2 Answers   HCL, iFlex, Motorola,


Explain what is wrong with this statement? Myname = ?robin?;

0 Answers  


what is the diference between pointer to the function and function to the pointer?

2 Answers   Infosys,






Why isnt any of this standardized in c?

0 Answers  


what is difference between c and c++

4 Answers  


what is pointer?

4 Answers  


write a program to remove duplicate from an ordered char array? in c

2 Answers  


Write a program to exchange two variaables without temp

9 Answers   Geometric Software,


What are the advantage of c language?

0 Answers  


Why array starts with index 0

2 Answers  


Categories