write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.
Answer Posted / piyush kumar
char gacstring="piyush";
int giindex=0;
voidfnreverse();
void main()
while(gacstring[giindex]!='\0'){
giindex++;
voidfnreverse();
}
if(giindex>0)
giindex--;
printf("%c",chargacstring);
return 0;
}
| Is This Answer Correct ? | 4 Yes | 14 No |
Post New Answer View All Answers
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
what do you mean by inline function in C?
Explain the meaning of keyword 'extern' in a function declaration.
What is #include conio h?
In C, What is the #line used for?
Explain what is a stream?
What are actual arguments?
Is it better to bitshift a value than to multiply by 2?
What is ambagious result in C? explain with an example.
formula to convert 2500mmh2o into m3/hr
What is the difference between strcpy() and memcpy() function in c programming?
What does c mean in standard form?
write a program fibonacci series and palindrome program in c
What is an identifier?
Explain low-order bytes.