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
What is main function in c?
Is there sort function in c?
What are the primitive data types in c?
What are the types of operators in c?
#include
What is the use of static variable in c?
How can a program be made to print the name of a source file where an error occurs?
What is the use of pointers in C?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What is printf () in c?
Wt are the Buses in C Language
Is it cc or c in a letter?
What is difference between structure and union in c programming?
Explain what is the benefit of using const for declaring constants?
how many errors in c explain deply