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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!