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

Can you use the function fprintf() to display the output on the screen?

1195


What are the various storage classes in C++?

1090


What is meant by const_cast?

1071


Tell me an example where stacks are useful?

986


When does a name clash occur in c++?

1112


Differentiate between the message and method in c++?

1010


Is it possible to have a recursive inline function in c++?

979


What do you mean by persistent and non persistent objects?

1360


What is a constructor and how is it called?

991


Name the implicit member functions of a class.

1035


Explain the advantages of using friend classes.

1092


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

2955


What does extern mean in a function declaration in c++?

1158


What are the stages in the development cycle?

989


How is objective c different from c++?

1196