Code:int i, *p, *q; // is this legal or illegal? Which one is legal and what is not? p = i; * p = &i; &p = q; p = &q; p = *&q; p =q; p = *q; *p = q; *p = *q; //Just wondering which of these are legal in all situations..
Code:int i, *p, *q; // is this legal or illegal? Which one is legal and what is not? p = i; * p = &i; &p = q; p = &q; p = *&q; p =q; p = *q; *p = q; *p = *q; //Just wondering which of these are legal in all situations..