I have a question in interpreting (in the form I read my code) in assignments in pointers in the C language.
I did not understand the logic of the following assignments:
"If i
and j
are integer variables and p
and q
pointers to int
, which of the following attribution expressions are illegal?"
Statement of the exercise:
a) p = &i;
b) *q = &j;
c) p = &*&i;
d) i = (*&)j;
e) i = *&j;
f) i = *&*&j;
g) q = *p;
h) i = (*p)++ + *q;
I have questions on items C, D, E and F, since I did not understand the logic of the following assignments ... A, B, G and H I have no doubt in the assignments, only those using "* & var ".
How do I interpret these assignments in C?