Which of the following is a legally correct way of declaring a variable that is a pointer to an integer?

Which of the following is a legally correct way of declaring a variable that is a pointer to an integer?


A) int* ptr
B) pointer<int> ptr
C) int& ptr
D) int ptr*

Ans: A
Title: Which statement declares a variable that is a pointer to an integer?


Learn More Multiple Choice Question :