In how many ways we can initialize an int variable in C++?
For example, to declare a variable of type int called x and initialize it to a value of zero from the same moment it is declared, we can write: int x = 0; A second method, known as constructor initialization (introduced by the C++ language), encloses the initial value between parentheses ( () ):
Is This Answer Correct ? | 0 Yes | 0 No |
What happens if an exception is throws from an object's constructor and from object's destructor?
What happens when the extern "c" char func (char*,waste) executes?
What is c++ programming language?
When is the destructor called?
How will you call C functions from C ++ and vice-versa?
0 Answers Agilent, Tavant Technologies, Thomson Reuters, Verifone,
Why main function is special in c++?
Is it possible to provide special behavior for one instance of a template but not for other instances?
Consider the following code fragment: int main(void) { int m = 4; mystery ( m ); mystery ( m ); printf("%d", m); return 0; } What is the output on the monitor if mystery is defined as follows ? void mystery (int m) { m = m+3; }
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
Should you pass exceptions by value or by reference?
Explain the difference between c & c++?
What is static function? Explain with an example