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 is the extension of c++?

987


What do you mean by ‘void’ return type?

1072


What is a driver program?

1114


What is low level language in simple words?

1032


Explain selection sorting?

1093


What is long in c++?

1253


What is searching?

1136


When does a name clash occur in c++?

1173


Define anonymous class.

1085


What is encapsulation in c++ with example?

1009


Explain how a pointer to function can be declared in C++?

1070


What causes a runtime error c++?

1136


How many characters are recognized by ANSI C++?

1426


What is flush c++?

1015


Explain public, protected, private in c++?

1022