Which of the following is not a correct declaration statement in C++?

2018

Which of the following is not a correct declaration statement in C++?

Answer: C. int p; double *fp = &p;

  1. A.

    int *ptr=0, p;

  2. B.

    int p, *ptr = 0;

  3. C.

    int p; double *fp = &p;

  4. D.

    int *p, *q, r;

Attempted by 363 students.

Show answer & explanation

Correct answer: C

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…