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 linked lists in c?
What is the best organizational structure?
Explain low-order bytes.
Define Spanning-Tree Protocol (STP)
What is the difference between single charater constant and string constant?
write a program to create a sparse matrix using dynamic memory allocation.
How do you construct an increment statement or decrement statement in C?
Explain what does the format %10.2 mean when included in a printf statement?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
what is the difference between class and unio?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is the value of c?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What is data structure in c programming?