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


Please Help Members By Posting Answers For Below Questions

What are global variables?

738


What are identifiers c?

687


Write a program to print all permutations of a given string.

768


What are the different types of C instructions?

795


What is typedf?

752






When should a type cast not be used?

705


List out few of the applications that make use of Multilinked Structures?

1482


Explain the difference between getch() and getche() in c?

645


What is a method in c?

712


code for replace tabs with equivalent number of blanks

1762


What is structure and union in c?

694


Explain why can’t constant values be used to define an array’s initial size?

966


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1595


What are types of functions?

663


What is the difference between functions getch() and getche()?

711