How to reverse a string using a recursive function, without
swapping or using an extra memory?
Answer Posted / aravind
#Include<stdio.h>
void display(char*)
void main()
{
char str[]= "Aravind"
disply(str)
}
void display(char *p)
{
static int i=1;
if(*p=='\0')
{
display(p+i)
i++
}
printf("%c",*p)
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is array within structure?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What is c language used for?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
what is the basis for selection of arrays or pointers as data structure in a program
Explain argument and its types.
Explain what is wrong with this program statement? Void = 10;
What is the purpose of the preprocessor directive error?
What is a buffer in c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
All technical questions
What does %p mean c?
What do you mean by keywords in c?
Why is event driven programming or procedural programming, better within specific scenario?