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 need of a destructor?

1066


What is virtual destructor? What is its use?

1003


Define stacks. Provide an example where they are useful.

950


When should I use unitbuf flag?

965


Describe friend function & its advantages.

1088


What is c++ hash?

1054


What is java and c++?

1095


Eplain extern keyword?

977


Explain what happens when a pointer is deleted twice?

1186


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

1034


What is std :: endl?

972


What is the difference between a declaration and a definition?

1040


Write a program to find the reverse Fibonacci series starting from N.

1161


Write a Program to find the largest of 4 no using macros.

1029


Evaulate: 22%5 a) 2 b) 4 c) 0

1034