Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

simple c++ program for "abcde123ba" convert "ab321edcba"
with out using string

Answer Posted / ragavan

#include<stdio.h>
#include<conio.h>
//Using recursive
void print( char c)
{
char a;
if(c=='\n')
return;
a=getchar();
print(a);
printf("%c",c);
return;
}

void main()
{
char c;
clrscr();
c= getchar();
print(c);
getch();
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Distinguish between a # include and #define.

1203


What is a manipulator in c++?

1274


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2587


Is c++ a programming language?

1138


What is #include iostream in c++?

1109


Write a Program for find and replace a character in a string.

1131


Write about the use of the virtual destructor?

1059


What is a constructor and how is it called?

1093


Why namespace is used in c++?

1118


Explain the difference between overloading and overriding?

1196


What is the use of endl?

1031


What is an undefined behavior and sequence points

1055


Will c++ be replaced?

1101


What are inline functions? What is the syntax for defining an inline function?

1212


Why was c++ created?

1084