Question: Explain the mistakes in the following code. Not all lines contain mistakes. Each line depends on the lines preceding it 1 double a = 1000;
Explain the mistakes in the following code. Not all lines contain mistakes. Each line depends on the lines preceding it
1 double a = 1000;
2 double* p = a;
3 int* p = &a;
4 double* q;
5 *q = 2000;
6 int* r = nullptr;
7 *r = 3000;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
