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
What are global variables?
What are identifiers c?
Write a program to print all permutations of a given string.
What are the different types of C instructions?
What is typedf?
When should a type cast not be used?
List out few of the applications that make use of Multilinked Structures?
Explain the difference between getch() and getche() in c?
What is a method in c?
code for replace tabs with equivalent number of blanks
What is structure and union in c?
Explain why can’t constant values be used to define an array’s initial size?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What are types of functions?
What is the difference between functions getch() and getche()?