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 is union and structure?
What is restrict keyword in c?
Create a simple code fragment that will swap the values of two variables num1 and num2.
How can I invoke another program or command and trap its output?
What is a stream water?
How do I get an accurate error status return from system on ms-dos?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
What is an auto keyword in c?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What does nil mean in c?
given post order,in order construct the corresponding binary tree
What are the types of unary operators?
What standard functions are available to manipulate strings?
What is static memory allocation? Explain
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?