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 are data types in c language?
What is mean by data types in c?
Is array name a pointer?
in iso what are the common technological language?
Why n++ execute faster than n+1 ?
When a c file is executed there are many files that are automatically opened what are they files?
Can we assign string to char pointer?
What is the size of a union variable?
How are portions of a program disabled in demo versions?
What do you mean by c what are the main characteristics of c language?
How do c compilers work?
What is %d called in c?
What are valid signatures for the Main function?
why do some people write if(0 == x) instead of if(x == 0)?
Explain that why C is procedural?