Explore topic-wise MCQs in C++ Programming.

This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your C++ Programming knowledge and support exam preparation. Choose a topic below to get started.

1.

What does the following statement mean?
int (*fp)(char*)

A. function taking a char* argument and returning a pointer to int
B. pointer to a pointer
C. pointer to an array of chars
D. pointer to function taking a char* argument and returns an int
E. None of these
Answer» E. None of these
2.

Identify the type of the variables.
typedef char* CHAR;
CHAR a,b;

A. char
B. CHAR
C. char*
D. typedef
E. unknown
Answer» D. typedef
3.

What does the following statement mean?

A. function taking a char* argument and returning a pointer to int
B. pointer to a pointer
C. pointer to an array of chars
D. pointer to function taking a char* argument and returns an int
E. None of these
Answer» E. None of these
4.

Identify the type of the variables.

A. char
B. CHAR
C. char*
D. typedef
E. unknown
Answer» D. typedef