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
Why array is used in c?
Describe the header file and its usage in c programming?
What is the use of the function in c?
What is union and structure in c?
program to convert a integer to string in c language'
What does malloc () calloc () realloc () free () do?
What is the difference between NULL and NUL?
What is the best way of making my program efficient?
Is sizeof a keyword in c?
Are the variables argc and argv are local to main?
Explain how are 16- and 32-bit numbers stored?
What is a macro, and explain how do you use it?
How pointers are declared?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)