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

How would you use the functions randomize() and random()?

1021


What is the use of dot in c++?

1023


Which is better c++ or java?

925


What is a catch statement?

981


Program to check whether a word is a sub-string or not of a string typed

1973


How is static data member similar to a global variable?

1045


Write a program in C++ for Fibonacci series

1134


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

2308


Write bites in Turbo c++ Header ("Include") Files.

1200


Is nan a c++?

1090


Which software is best for coding?

991


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

2015


What is unary operator? List out the different operators involved in the unary operator.

936


Explain terminate() function?

1007


What is a character in c++?

991