Question: True or False int *p1; declares a variable whose memory is statically allocated. Dynamically created variables have no name. If p1 and p2 are both

True or False

int *p1; declares a variable whose memory is statically allocated.

Dynamically created variables have no name.

If p1 and p2 are both pointers that point to integers in memory, the condition p1==p2 will be true if the values that are stored in the dynamic memory locations pointed to by p1 and p2 are the same.

Even though pointers point to addresses which are integers, you cannot assign an integer to a pointer variable.

In the following statement, both variables are pointers.

int* p1, p2;

A contents of a pointer can be stored in an integer variable.

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!