write function to reverse char array ... without using second
array
Answer Posted / kiran
{
char temp;
for(i,j=strlen(str)-1;i<j;i++,j--)
{
temp = str[i];
str[i] = str[j];
str[j] = temp;
}
return str;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can I call a function with an argument list built up at run time?
What are the main characteristics of c language describe the structure of ac program?
What is a macro?
Explain why can’t constant values be used to define an array’s initial size?
What are the complete rules for header file searching?
Does c have enums?
Who is the founder of c language?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
What are the loops in c?
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.
Can you please explain the difference between syntax vs logical error?
What is operator precedence?
Why we use conio h in c?
how do you programme Carrier Sense Multiple Access
Explain two-dimensional array.