Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is c standard library?

1269


Why is sprintf unsafe?

1127


Explain how can I convert a number to a string?

1205


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1176


Write a program on swapping (100, 50)

1165


Once I have used freopen, how can I get the original stdout (or stdin) back?

1119


Which is best book for data structures in c?

1136


What does sizeof int return?

1132


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1352


What is a void pointer? When is a void pointer used?

1102


State the difference between x3 and x[3].

1163


How can variables be characterized?

2236


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

2385


What are the __date__ and __time__ preprocessor commands?

1172


What is derived datatype in c?

1140