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 the array and initializing arrays in c++?
How do I get good at c++ programming?
Evaulate: 22%5 a) 2 b) 4 c) 0
What is a hashmap c++?
What is runtime errors c++?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
Define upcasting.
Differentiate between declaration and definition.
Describe the advantages of operator overloading?
Should you pass exceptions by value or by reference?
Is swift faster than go?
Write a function that swaps the values of two integers, using int* as the argument type?
What are guid? Why does com need guids?
What are the effects after calling the delete this operator ?
What is the syntax for a for loop?