MCQOPTIONS
Bookmark
Saved Bookmarks
→
Computer Science Engineering (CSE)
→
Software Design Modeling
→
What is value of size?
1.
What is value of size?
A.
28
B.
32
C.
20
D.
24
Answer» D. 24
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
#include using namespace std; class X { public: int x; }; int main() { X a = {10}; X b = a; cout
#include using namespace std; class Point { public: Point() { cout
Output of following program? #include using namespace std; class Point { Point() { cout
When a copy constructor may be called?
Which of the followings is/are automatically added to every class, if we do not write our own.
Is it fine to call delete twice for a pointer? #include using namespace std; int main() { int *ptr = new int; delete ptr; delete ptr; return 0; }
What happens when delete is used for a NULL pointer? int *ptr = NULL; delete ptr;
Predict the output? #include using namespace std; class Test { int x; Test() { x = 5;} }; int main() { Test *t = new Test; cout
Which of the following is true about new when compared with malloc. 1) new is an operator, malloc is a function 2) new calls constructor, malloc doesn't 3) new returns appropriate pointer, malloc returns void * and pointer needs to typecast to appropriate type.
Which of the following is true about the following program #include class Test { public: int i; void get(); }; void Test::get() { std::cout i; } Test t; // Global object int main() { Test t; // local object t.get(); std::cout
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply