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
how to introdu5ce my self in serco
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What is pointer to pointer in c language?
What are types of structure?
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
a program that can input number of records and can view it again the record
What is the use of a ‘ ’ character?
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?
Why c is a mother language?
What are the types of data files?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Who invented bcpl language?
write a program fibonacci series and palindrome program in c
What does static variable mean in c?
Explain what happens if you free a pointer twice?