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
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
What is the use of seekg in c++?
Can you sort a set c++?
What is the difference between reference and pointer?
What is binary object model?
How do you flush a buffer in c++?
What is the identity function in c++? How is it useful?
Explain overriding.
Explain the difference between static and dynamic binding of functions?
How would you differentiate between a pre and post increment operators while overloading?
What is c++ array?
What is the basic concept of c++?
Name the implicit member functions of a class.
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
Is c++ platform dependent?