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

what is a reference variable in C++?

1228


What is meant by the term name mangling in c++?

952


How much maximum can you allocate in a single call to malloc()?

1107


What you know about structures in C++?

1066


How is computer programming useful in real life?

1054


What are maps in c++?

957


What is array give example?

1041


What is the benefit of c++?

1125


Difference between class and structure.

1157


What do you mean by delegate? Can a user retain delegates?

936


What is an accessor in c++?

1068


What is the purpose of ios::basefield in the following statement?

1251


Is c++ low level?

1028


Is c++ a dying language?

1144


Write a struct time where integer m, h, s are its members?

951