Can anyone parse this following expression for me
#define Mask(x) (*((int *)&(x)))
I applied the popular right-left rule to solve but cant.. 🙁
Thanks a bunch ahead 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This defines a macro Mask that interprets its argument as an int.
&(x)– address of x…(int *)&(x)– …interpreted as a pointer to int*((int *)&(x))– the value at that pointer