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
What are register variables in c?
Why do we use int main?
Explain what does it mean when a pointer is used in an if statement?
What is pragma in c?
Why & is used in scanf in c?
What is hashing in c language?
How can I copy just a portion of a string?
What are the advantages of external class?
Why does not c have an exponentiation operator?
What does c mean before a date?
what is uses of .net
What does it mean when a pointer is used in an if statement?
Explain the use of 'auto' keyword in c programming?
What will be the outcome of the following conditional statement if the value of variable s is 10?
Are pointers really faster than arrays?