write a program to reverse the words in the sentence.NOTE:not reverse the entire string but just the occurance of each word

Answer Posted / rprabhakaranmca

INPUT:HI Hi welcome to Citrisus
OUTPUT;Citrisus to Welcome Hi

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which is an algorithm for sorting in a growing Lexicographic order

1388


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1832


Tell me the use of bit field in c language?

621


What is array of pointers to string?

559


What does int main () mean?

539






What is the use of clrscr?

586


What are examples of structures?

583


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

716


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1735


provide an example of the Group by clause, when would you use this clause

1699


What is the difference between c and python?

574


write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values.  The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.

2694


Can we declare function inside main?

560


How will you write a code for accessing the length of an array without assigning it to another variable?

611


What does it mean when the linker says that _end is undefined?

621