123 Eng

Engineering the engineers™


Latest Jobs   Forum Map

 


Home

Source Codes

BE Students

Training  Reports (updated)

Placement Papers (updated)

Forums

   Computer Science / IT

   Electronics

   Electrical

   Mechanical

   Chemical

   Civil

   CAT / MBA

   GMAT / Foreign MBA

Latest Jobs

Engineering Jobs / Technical Jobs

Management Jobs

Sitemap

About-Us

Terms of use

Displaying  Source Code(s)  
 

 
Program to reverse the input string.

--------------------------------------------------------------------------------



#include <stdio.h>
#include <conio.h>
# define EOLN '
'
void reverse(void); /* function prototype */

void main()
{
char c;
clrscr();
printf(" Please enter a line of text below<BR>);
reverse();
printf("
is the reversed form.");
getch();
}
void reverse(void)
/* read a line of characters & write it out backwards */

{
char c;
if ((c=getchar())!=EOLN)
reverse();
putchar(c);
return;
}

 

 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG