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

What are the two types of comments, and how do they differ?

1115


Which programming language is best?

972


What is the difference between structures and unions?

1052


What is the difference between object-oriented programming and procedural programming?

1217


What is the cout in c++?

1041


How can a struct in c++ differs from a struct in c?

1026


What is the use of "new" operator?

1115


What you know about structures in C++?

1052


How can virtual functions in c++ be implemented?

1110


What is class invariant in c++?

1212


What are separators in c++?

1077


Why is it called c++?

1020


How do we implement inheritance in c++?

1115


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

1060


Which is the best c++ compiler for beginners?

1079