Question: Which location of the array num does ptr point to right after you assign an array to a pointer variable, as shown in the following

Which location of the array num does ptr point to right after you assign an array to a pointer variable, as shown
in the following code snippet?
1. int num[5];
int* ptr = num;
A. num[0]
B. num[1]
C. num[5]
D. You cannot assign an array to a pointe

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!