How to reverse a string using a recursive function, without
swapping or using an extra memory?
Answer Posted / mahendra aseri
Using recursive Function:
void rev_str(char *str)
{
if(*str!=NULL)
rev_str(str+1);
printf("%c",str);
}
| Is This Answer Correct ? | 20 Yes | 43 No |
Post New Answer View All Answers
What will be the outcome of the following conditional statement if the value of variable s is 10?
What is difference between class and structure?
What is the condition that is applied with ?: Operator?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
write a c program for swapping two strings using pointer
What is c language & why it is used?
Explain what is the general form of a c program?
What is uint8 in c?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
Which header file is essential for using strcmp function?
When should a type cast be used?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
Is it possible to have a function as a parameter in another function?
difference between object file and executable file