Preston F.

asked • 02/21/18

If you declare an integer pointer as int *pt; and you declare an integer variable as int num; , then which of the following is legal?


A.
num = &pt;
B.
pt = #
C.
*num = *pt;
D.
&num = pt;
Please do not mention C. 

1 Expert Answer

By:

David A. answered • 05/16/18

Experienced tutor in C, who loves to mentor and pass on my knowledge

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.