Explain how to initialize a const data member.
No Answer is Posted For this Question
Be the First to Post Answer
How can you tell what shell you are running on unix system?
Given the following function definition: int doit(int &x, int y, int &z) { x = 3*x; y = y + 5; z = x+y; return z - 4; } int a = 5, b = 7, c = 9, d = 11; d = doit(a,b,c);
What is diamond problem in c++?
Comment on assignment operator in c++.
Explain what are accessor methods?
class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.
Explain the difference between new() and malloc() in c++?
What is the output of the following 3D Array int arr[3][2][2]={1,2,3,4,5,6,7,8,9,10,11,12}; what is the output for arr[2][1][0]?
6 Answers HCL, Integra, IPMC, ORG,
How many characters are recognized by ANSI C++?
What is the limitation of cin while taking input for character array?
Explain the difference between realloc() and free() in c++?
Why main function is special in c++?