write an algorithm to get a sentence and reverse it in the
following format:
input : I am here
opuput: Here Am I
note: first letter of every word is capiatlised
Answer Posted / debasis patnaik
ALGO:1.TAKE A STRING STR1
2.REVERSE IT BY STRREV(STR1)
3.CONCANICATE WITH SPACEBY STRCAT(" ",STR1)AND ASSIGN TO STR2
4.IF(STR2[I]==" ")
{
(ISUPPER(STR2[I+1])))
PRINT(STR(2)
5.END
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
write a program to print data of 5 five students with structures?
Describe the steps to insert data into a singly linked list.
How can I access an I o board directly?
Explain is it better to bitshift a value than to multiply by 2?
Explain about the functions strcat() and strcmp()?
What are the various types of control structures in programming?
What are the different types of C instructions?
What does == mean in texting?
What do you know about the use of bit field?
What is null pointer constant?
Is c is a high level language?
What are the functions to open and close file in c language?
Explain how can I avoid the abort, retry, fail messages?
What is pointer to pointer in c language?