explain the reference variable in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What is size of a object of following class? class Foo { public: void foo(){} }
How do you allocate and deallocate memory in C++?
Is string an object in c++?
How do you master coding?
Which is better turbo c++ or dev c++?
What is istream c++?
Which uses less memory? a) struct astruct { int x; float y; int v; }; b) union aunion { int x; float v; }; c) char array[10];
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
What is the identity function in c++? How is it useful?
What is the difference between global variables and static varables?
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 is the last index number in an array of 100 characters a) 100 b) 99 c) 101