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
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
Can a file other than a .h file be included with #include?
Where static variables are stored in memory in c?
Explain how can you tell whether two strings are the same?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is spaghetti programming?
How do you initialize pointer variables?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
Why is c platform dependent?
What is default value of global variable in c?
Explain how can I right-justify a string?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
What is an arrays?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
What does d mean?