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)??
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER