Q. Which of the following is the correct way to declare a pointer in C?
β
Correct Answer: (B)
int *ptr;
Explanation: int *ptr; declares a pointer to an integer.