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
Tell me what are bitwise shift operators?
what is the significance of static storage class specifier?
What are # preprocessor operator in c?
What is the difference between far and near in c?
How will you delete a node in DLL?
How can I find the modification date and time of a file?
How can I make sure that my program is the only one accessing a file?
What is header file in c?
What are the back slash character constants or escape sequence charactersavailable in c?
What is a stream?
What is an operator?
What are 'near' and 'far' pointers?
What are the types of data files?
Where static variables are stored in c?
Can you assign a different address to an array tag?