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

How const functions will be treated by compiler?

Answer Posted / achal ubbott

A member function can be const qualified. e.g.

class SAAMPLE
{
int m1;
void f() const;

}
Now function f will not be able to modify the value of data
members. If so done the compiler would report an error.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

1046


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2467


Is rust better than c++?

1072


What is ios in c++?

1179


How will you call C functions from C ++ and vice-versa?

1099


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

939


What is buffering in c++?

1022


Describe new operator and delete operator?

1036


Is c better than c++?

1028


What is an object in c++?

1168


Define friend function.

995


How do you establish an is-a relationship?

1096


Is string an object in c++?

1114


What is the copy-and-swap idiom?

1065


Can you sort a set c++?

953