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

When is dynamic checking necessary?

1109


Can you write a function similar to printf()?

1126


What is the fastest c++ compiler?

1101


Out of fgets() and gets() which function is safe to use?

1126


Do vectors start at 0?

990


What is the full form of ios?

1060


What is the difference between equal to (==) and assignment operator (=)?

1067


Can you pass a vector to a function?

978


Write about all the implicit member functions of a class?

1058


What is struct c++?

993


Define 'std'.

1173


Is c++ used anymore?

1088


Define vptr.

1028


State the difference between delete and delete[].

1102


Declare a class vehicle and make it an abstract data type.

964