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 / 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


Please Help Members By Posting Answers For Below Questions

What are register variables in c?

1016


Why do we use int main?

1103


Explain what does it mean when a pointer is used in an if statement?

1069


What is pragma in c?

1219


Why & is used in scanf in c?

1102


What is hashing in c language?

1322


How can I copy just a portion of a string?

1318


What are the advantages of external class?

1071


Why does not c have an exponentiation operator?

1054


What does c mean before a date?

1184


what is uses of .net

1742


What does it mean when a pointer is used in an if statement?

1111


Explain the use of 'auto' keyword in c programming?

1121


What will be the outcome of the following conditional statement if the value of variable s is 10?

1296


Are pointers really faster than arrays?

1033