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
What is protected inheritance?
Do you know what are pure virtual functions?
What is time h in c++?
What is an inclusion guard?
How to demonstrate the use of a variable?
When are exception objects created?
Why is c++ so fast?
What is lambda expression c++?
Which programming language is best to learn first?
Is c or c++ more useful?
Explain what you mean by a pointer.
What is implicit pointer in c++?
What is flag in computer?
What methods can be overridden in java?
Why #include is used?