Explore topic-wise MCQs in Technical MCQs.

This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

1.

Referencing a value through a pointer is called

A. Direct calling
B. Indirection
C. Pointer referencing
D. All of the above
E.
Answer» C. Pointer referencing
2.

 int (*fp)(char*)
9.A void pointer cannot point to which of these?

A. Methods in c++
B. Class member in c++
C. Both A & B
D. None of the above
Answer» C. Both A & B
3.

Which from the following is not a correct way to pass a pointer to a function?

A. Non-constant pointer to non-constant data
B. A non-constant pointer to constant data
C. A constant pointer to non-constant data
D. All of the above
Answer» E.
4.

What is size of generic pointer in c?

A. 0
B. 1
C. 2
D. Null
Answer» D. Null
5.

Choose the right option string* x, y;

A. x is a pointer to a string, y is a string
B. y is a pointer to a string, x is a string
C. Both x and y are pointers to string types
D. none of the above
Answer» B. y is a pointer to a string, x is a string
6.

A pointer can be initialized with

A. Null
B. Zero
C. Address of an object of same type
D. All of the above
Answer» E.
7.

Which of the following gives the [value] stored at the address pointed to by the pointer : ptr?

A. Value(ptr)
B. ptr
C. &ptr
D. *ptr
Answer» E.
8.

Which of the following is the correct way to declare a pointer ?

A. int *ptr
B. int ptr
C. int &ptr
D. All of the above
Answer» B. int ptr