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

how to introdu5ce my self in serco

1521


Explain can the sizeof operator be used to tell the size of an array passed to a function?

597


What is pointer to pointer in c language?

595


What are types of structure?

604


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2723






a program that can input number of records and can view it again the record

1484


What is the use of a ‘’ character?

586


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

601


Why c is a mother language?

554


What are the types of data files?

729


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

655


Who invented bcpl language?

705


write a program fibonacci series and palindrome program in c

633


What does static variable mean in c?

652


Explain what happens if you free a pointer twice?

613