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

136. Which of the following is the incorrect way to declare a pointer?

  1. int *ptr;
  2. int* ptr;
  3. int &ptr;
  4. int *ptr=0;

Answer: C) int &ptr;

Explanation:

The 3rd option is the incorrect way to declare a pointer.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.