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
Who developed c language?
What is difference between array and pointer in c?
What are header files why are they important?
When should a far pointer be used?
Why are algorithms important in c program?
What are structure types in C?
How can I write a function that takes a format string and a variable number of arguments?
What is identifier in c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
what is the height of tree if leaf node is at level 3. please explain
Explain do array subscripts always start with zero?
What is the meaning of ?
Why ca not I do something like this?
What is the meaning of 2d in c?
What are derived data types in c?