write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.
Answer Posted / sampath
void reverse(*str)
{
if(*str)
{
reverse(str+1);
putchar(*str);
}
}
Is This Answer Correct ? | 58 Yes | 51 No |
Post New Answer View All Answers
What is #define size in c?
Explain how can I open a file so that other programs can update it at the same time?
Why isn't it being handled properly?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
How can I pad a string to a known length?
Is main a keyword in c?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What are lookup tables in c?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
What is the purpose of sprintf() function?
how we can make 3d venturing graphics on outer interface
What is the use of pointers in C?
What is scanf () in c?