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

What is the array and initializing arrays in c++?

1033


How do I get good at c++ programming?

1172


Evaulate: 22%5 a) 2 b) 4 c) 0

1095


What is a hashmap c++?

1127


What is runtime errors c++?

1131


What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

1180


Define upcasting.

1047


Differentiate between declaration and definition.

1052


Describe the advantages of operator overloading?

1048


Should you pass exceptions by value or by reference?

1137


Is swift faster than go?

1105


Write a function that swaps the values of two integers, using int* as the argument type?

1031


What are guid? Why does com need guids?

1055


What are the effects after calling the delete this operator ?

1060


What is the syntax for a for loop?

1145