write a program in reverse the string without using
pointer,array,global variable declaration,lib fun only using
a function?
Answer Posted / r.s.guptha
void reverse()
{
char c = getchar();
if(c=='\n' || c=='\r')
return;
else
reverse();
putchar(c);
}
int main()
{
reverse();
return 0;
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
can we implement multi-threads in c.
How to draw the flowchart for structure programs?
Differentiate between the expression “++a” and “a++”?
Explain what math functions are available for integers? For floating point?
What is meant by realloc()?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
When we use void main and int main?
What is c language & why it is used?
What is difference between class and structure?
Explain how can type-insensitive macros be created?
What is the basic structure of c?
what do the 'c' and 'v' in argc and argv stand for?
How do we declare variables in c?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
What is a memory leak? How to avoid it?