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;
- A.
int *ptr=0, p;
- B.
int p, *ptr = 0;
- C.
int p; double *fp = &p;
- D.
int *p, *q, r;
Attempted by 363 students.
Show answer & explanation
Correct answer: C
Loading lesson…