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

explain how do you use macro?

1119


Why is event driven programming or procedural programming, better within specific scenario?

2388


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3049


What is structure in c definition?

1008


Explain how can I read and write comma-delimited text?

1133


What is the purpose of sprintf?

1090


How do you redirect a standard stream?

1073


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

3532


Explain how can I make sure that my program is the only one accessing a file?

1201


Are pointers integer?

975


In a byte, what is the maximum decimal number that you can accommodate?

1094


a program that can input number of records and can view it again the record

1878


Explain spaghetti programming?

1214


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1170


What are the keywords in c?

1103