Describe about storage allocation and scope of global, extern, static, local and register variables?
No Answer is Posted For this Question
Be the First to Post Answer
What is encapsulation in C++? Give an example.
0 Answers HAL, Honeywell, Zomato,
Does a derived class inherit or doesn't inherit?
What is abstraction with real time example?
int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
template<class T, class X> class Obj { T my_t; X my_x; public: Obj(T t, X x) : my_t(t), my_x(x) { } }; Referring to the sample code above, which one of the following is a valid conversion operator for the type T? a) T operator T () { return my_t; } b) T operator(T) const { return my_t; } c) operator(T) { return my_t; } d) T operator T (const Obj &obj) { return obj.my_t; } e) operator T () const { return my_t; }
what are Access specifiers in C++ class? What are the types?
How one would use switch in a program?
What is a responder chain?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?