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

simple c++ program for "abcde123ba" convert "ab321edcba"
with out using string

Answer Posted / pramod

void mystrrev(char* str)
{
char ch;
int last=strlen(str)-1;
for(int i=0;i<last;i++,last--)
{
ch=str[i];
str[i]=str[last];
str[last]=ch;
}
}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define a nested class. Explain how it can be useful.

1054


What is the best ide for c++?

1060


What are the rules about using an underscore in a c++ identifier?

1111


Is it possible for a member function to delete the pointer, named this?

1107


What is implicit conversion/coercion in c++?

1379


What is format for defining a structure?

1044


Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1487


Explain overriding.

956


What are the two types of polymorphism?

1084


What do you mean by public protected and private in c++?

1015


How do you define a class in c++?

1048


What is binary search in c++?

993


What is the average salary of a c++ programmer?

983


Do you need a main function in c++?

1095


What is command line arguments in C++? What are its uses? Where we have to use this?

1211