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
How can you link a c program with a c function?
Explain how to initialize a const member data.
What are the basic data types used in c++?
What is c++ namespace?
Which field is used in c++?
How the virtual functions maintain the call up?
Explain linear search.
Do you know about latest advancements in C++ ?
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
How do you decide which integer type to use?
Is c the same as c++?
Write is a binary search tree? Write an algo and tell complexity?
Will c++ be replaced?
What is runtime errors c++?
What are static type checking?