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 is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What is a union?
Differentiate fundamental data types and derived data types in C.
What are file streams?
What is pass by value in c?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
What is the right way to use errno?
What are reserved words?
How can I write functions that take a variable number of arguments?
What would be an example of a structure analogous to structure c?
Explain c preprocessor?
What is the general form of function in c?
What are c identifiers?
What does s c mean on snapchat?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?