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
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is the difference between memcpy and memmove?
How pointers are declared?
How are structure passing and returning implemented?
What is the most efficient way to store flag values?
How arrays can be passed to a user defined function
What is difference between scanf and gets?
What does 3 mean in texting?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
In a byte, what is the maximum decimal number that you can accommodate?
Why is c so powerful?
Is malloc memset faster than calloc?
write a program to concatenation the string using switch case?
What is double pointer in c?
What is the difference between array and structure in c?