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

How can I call a function with an argument list built up at run time?

1285


What are the main characteristics of c language describe the structure of ac program?

1264


What is a macro?

1163


Explain why can’t constant values be used to define an array’s initial size?

1398


What are the complete rules for header file searching?

1130


Does c have enums?

1172


Who is the founder of c language?

1222


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1163


What are the loops in c?

1047


Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.

1398


Can you please explain the difference between syntax vs logical error?

1239


What is operator precedence?

1278


Why we use conio h in c?

1298


how do you programme Carrier Sense Multiple Access

2009


Explain two-dimensional array.

1127