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
When is dynamic checking necessary?
Can you write a function similar to printf()?
What is the fastest c++ compiler?
Out of fgets() and gets() which function is safe to use?
Do vectors start at 0?
What is the full form of ios?
What is the difference between equal to (==) and assignment operator (=)?
Can you pass a vector to a function?
Write about all the implicit member functions of a class?
What is struct c++?
Define 'std'.
Is c++ used anymore?
Define vptr.
State the difference between delete and delete[].
Declare a class vehicle and make it an abstract data type.