Introduction to Programming - CS201 Spring 2003 Assignment 06

By    


 

Challenging Question

 

Deadline


Your Challenge Code must be uploaded/submitted at or before 9th April 2003

Objective


The objective of this Challenge Question is for the students to:

o                   Produce the most efficient code
o                   Enhance Analysis skill and devise better logic
  

Challenge Question

           
            Write a small C Program that inputs a sentence from the user and displays the entered sentence in reverse order. For example, if the user inputs

this is a test

and press enter key , the program displays

test a is this

Challenge


Write this code without any loops structure. And do not use any extra string for the purpose of temporary storage of input values.

Hint:

You may use cin.get(); 

Note:

 Make the variable names self–explanatory. Commenting the code properly and Indent your code properly for making it more understandable.