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
How would you use the functions randomize() and random()?
What is the use of dot in c++?
Which is better c++ or java?
What is a catch statement?
Program to check whether a word is a sub-string or not of a string typed
How is static data member similar to a global variable?
Write a program in C++ for Fibonacci series
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
Write bites in Turbo c++ Header ("Include") Files.
Is nan a c++?
Which software is best for coding?
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
What is unary operator? List out the different operators involved in the unary operator.
Explain terminate() function?
What is a character in c++?