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 does pointer work in c?
What is the significance of an algorithm to C programming?
How can I find out if there are characters available for reading?
What is the -> in c?
Explain what is the difference between functions getch() and getche()?
Explain Function Pointer?
Can we access the array using a pointer in c language?
How is a macro different from a function?
Explain what is the difference between the expression '++a' and 'a++'?
What is the difference between fread buffer() and fwrite buffer()?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What are the advantages of c language?
What is the difference between mpi and openmp?
Explain main function in c?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.