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
In c language can we compile a program without main() function?
What are the advantage of c language?
how is the examination pattern?
How can I read/write structures from/to data files?
Without Computer networks, Computers will be half the use. Comment.
what do u mean by Direct access files? then can u explain about Direct Access Files?
List the variables are used for writing doubly linked list program.
What is an arrays?
What is #include conio h?
What is scope rule in c?
How to declare a variable?
How can I do serial ("comm") port I/O?
in linking some of os executables are linking name some of them
Why is void main used?
What is storage class?