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
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What is the difference between variable declaration and variable definition in c?
What is main return c?
What is a spanning Tree?
What is a void pointer in c?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
write a proram to reverse the string using switch case?
Why is structure important for a child?
Can you tell me how to check whether a linked list is circular?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
what is the significance of static storage class specifier?
Who invented bcpl language?
What are the advantages of union?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
How many header files are in c?