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

Simplify the program segment if X = B then C ← true else C ← false

2587


Why is c called a structured programming language?

680


What is string concatenation in c?

568


Explain the difference between null pointer and void pointer.

673


Is printf a keyword?

762






What is the right type to use for boolean values in c? Is there a standard type?

566


how to build a exercise findig min number of e heap with list imlemented?

1612


What is the best organizational structure?

644


What standard functions are available to manipulate strings?

563


What is bss in c?

605


Can we access array using pointer in c language?

645


What is array in c with example?

617


Is c is a procedural language?

601


What is gets() function?

673


Why functions are used in c?

587