write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.
Answer Posted / noone
/* this one is a copy of a earlier one posted i just made a
small adjustment */
void reverse(char *str)
{
if(*str)
{
reverse(str+1);
putchar(*str);
}
}
| Is This Answer Correct ? | 18 Yes | 5 No |
Post New Answer View All Answers
write a program to generate address labels using structures?
What is the significance of c program algorithms?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
How can I access an I o board directly?
Are negative numbers true in c?
Can we declare variable anywhere in c?
What is void main () in c?
Process by which one bit pattern in to another by bit wise operation is?
Why static is used in c?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
What is difference between union All statement and Union?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
What are header files in c?
What are the 5 data types?
using for loop sum 2 number of any 4 digit number in c language