How to reverse a string using a recursive function, without
swapping or using an extra memory?
Answer Posted / bret
void revDisplay (char a[])
{
if(strlen(a) != 0)
{
revDisplay(a+1);
cout << a[0];
}
}
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
What is the difference between variable declaration and variable definition in c?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
Who developed c language?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
What is the return type of sizeof?
What are c header files?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
Explain void pointer?
code for replace tabs with equivalent number of blanks
What is function prototype?
can we change the default calling convention in c if yes than how.........?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What does volatile do?
Explain how do you sort filenames in a directory?
Can you apply link and association interchangeably?