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
Distinguish between a # include and #define.
What is a manipulator in c++?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
Is c++ a programming language?
What is #include iostream in c++?
Write a Program for find and replace a character in a string.
Write about the use of the virtual destructor?
What is a constructor and how is it called?
Why namespace is used in c++?
Explain the difference between overloading and overriding?
What is the use of endl?
What is an undefined behavior and sequence points
Will c++ be replaced?
What are inline functions? What is the syntax for defining an inline function?
Why was c++ created?