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
explain how do you use macro?
Why is event driven programming or procedural programming, better within specific scenario?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is structure in c definition?
Explain how can I read and write comma-delimited text?
What is the purpose of sprintf?
How do you redirect a standard stream?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
Explain how can I make sure that my program is the only one accessing a file?
Are pointers integer?
In a byte, what is the maximum decimal number that you can accommodate?
a program that can input number of records and can view it again the record
Explain spaghetti programming?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What are the keywords in c?