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
Simplify the program segment if X = B then C ← true else C ← false
Why is c called a structured programming language?
What is string concatenation in c?
Explain the difference between null pointer and void pointer.
Is printf a keyword?
What is the right type to use for boolean values in c? Is there a standard type?
how to build a exercise findig min number of e heap with list imlemented?
What is the best organizational structure?
What standard functions are available to manipulate strings?
What is bss in c?
Can we access array using pointer in c language?
What is array in c with example?
Is c is a procedural language?
What is gets() function?
Why functions are used in c?