Question: The following code has integer variable assignments a1 and a2. Enter the value of these variables at the end of the code as your answers

The following code has integer variable assignments a1 and a2. Enter the value of these variables at the end of the code as your answers to this problem. int nums[6] = {1, 1, 2, 3, 5, 8};

int *p_nums = nums + 2;

int a1 = p_nums[1];

int a2 = *(p_nums -1);

a1=

a2=

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!