sudarshan.fs
BAN USER
Comments (3)
Reputation 20
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
>The static user-defined variable creation doesn't automatically initialise it while > new operator calls a default constructor for initialisation.
Each static variable must be *defined* in exactly one compilation unit. It can be initialized at the point where it is defined. Else the compiler null initializes it. If the variable is a user defined type, the (default)constructor will be called before the main() execution begins.
Comment hidden because of low score. Click to expand.
1
of 1 vote
An overloaded operator is like a function call, hence it can be overloaded twice but with different signatures. Its nothing but function overloading!
- sudarshan.fs August 23, 2010Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
It is E because: It increases compile time dependency because lets say the component A has an inline function which component B is using. If the function changes, since the function is inline(the function is sitting in the binary of B); B needs to be recompiled as well. If it was an ordinary function, it could have just been linked.
- sudarshan.fs August 27, 2010