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
What are disadvantages of C language.
what is a function method?give example?
What are pointers? What are different types of pointers?
What is hash table in c?
What is nested structure with example?
What does 2n 4c mean?
What are the basic data types associated with c?
What is a char in c?
What is the data segment that is followed by c?
How do you search data in a data file using random access method?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
Without Computer networks, Computers will be half the use. Comment.
Are there any problems with performing mathematical operations on different variable types?
What is a function simple definition?