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
How can variables be characterized?
Why doesnt the call scanf work?
why we wont use '&' sing in aceesing the string using scanf
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Why is c used in embedded systems?
Can a function argument have default value?
What is maximum size of array in c?
How do we make a global variable accessible across files? Explain the extern keyword?
What does c mean in basketball?
What is the full form of getch?
can any one provide me the notes of data structure for ignou cs-62 paper
using for loop sum 2 number of any 4 digit number in c language
What is the purpose of 'register' keyword in c language?
State the difference between x3 and x[3].
What does %c mean in c?