McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2026
→
Computer Science Engineering (CSE)
→
Object Oriented Programming (OOP)
→
The only integer that can be assigned di...
Q.
The only integer that can be assigned directly to a pointer is
A.
0
B.
-1
C.
999
D.
-999
Answer» A. 0
595
0
Do you find this helpful?
1
View all MCQs in
Object Oriented Programming (OOP)
Discussion
No comments yet
Login to comment
Related MCQs
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.
When a function returns a value, the entire function call can appear on the right side of the equal sign and be assigned to another variable.
Which of the following ways are legal to access a class data member using this pointer?
What happens when delete is used for a NULL pointer? int *ptr = NULL; delete ptr;
Is it fine to call delete twice for a pointer? #include<iostream> using namespace std; int main() { int *ptr = new int; delete ptr; delete ptr; return 0; }
The default access level assigned to members of a class is
Which of the following statements is correct for a static member function? 1. It can access only other static members of its class. It can be called using the class name, instead of objects
Which type of class has only one unique value for all the objects of that same class?
Can constructors be overloaded?
An abstract class can be instantiated.