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
Explain what are the standard predefined macros?
What is optimization in c?
Why does everyone say not to use scanf? What should I use instead?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
What are identifiers and keywords in c?
Explain the difference between ++u and u++?
How can a number be converted to a string?
What are data types in c language?
What are the advantages of union?
What are the benefits of c language?
What is an arrays?
which is an algorithm for sorting in a growing Lexicographic order
What is the process to generate random numbers in c programming language?
What does d mean?
write a program to create a sparse matrix using dynamic memory allocation.