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


Please Help Members By Posting Answers For Below Questions

The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

3260


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

811


Why do we use c for the speed of light?

811


What does the && operator do in a program code?

938


formula to convert 2500mmh2o into m3/hr

749


How are portions of a program disabled in demo versions?

1000


What is indirection? How many levels of pointers can you have?

904


What is I ++ in c programming?

854


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

823


What is the difference between the = symbol and == symbol?

815


How can I sort more data than will fit in memory?

876


Why is void main used?

814


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1576


What is bubble sort technique in c?

760


Can we change the value of #define in c?

768