Link to home
Start Free TrialLog in
Avatar of kulesk
kulesk

asked on

casting a pointer to structure variable

If:

struct mystruct{
int num1
int num2
char something[10]
}my_s

int *mynum = NULL;

How do you cast "*mynum" to my_s.num1?
*mynum = &my_s.num1 (compile warnings)??
ASKER CERTIFIED SOLUTION
Avatar of szetoa
szetoa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kulesk
kulesk

ASKER

Thanks!