write function to reverse char array ... without using second
array
Answer Posted / sunitha
/* function to reverse a charactor array */
void rev_array(char str[])
{
char c;
char *p;
p=str;
while(*p)
{
if(*p!='\0')
{
c=p;
}
p++;
}
printf("reverse array is %s\n",c);
}
Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
What are the 5 types of inheritance in c ++?
What is spaghetti programming?
Explain the bubble sort algorithm.
What does void main () mean?
#include
What is strcpy() function?
Difference between malloc() and calloc() function?
What are the disadvantages of a shell structure?
How do you define structure?
Add Two Numbers Without Using the Addition Operator
What is calloc()?
Is null always defined as 0(zero)?
Is flag a keyword in c?
Explain high-order bytes.
Explain void pointer?