#define NUM_SQ_0 (1 << 1*1) //<<----- ??
static struct square sq_0[NUM_SQ_0];
Note that square is a struct with 4 pointers to square, defined as follows:
typedef struct square {
struct square *nw, *ne,
*sw, *se;
} *square;
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.
Per C++ operator precedence, the
*operator is evaluated first, and that evaluates to the value1, and then it’s shifted one bit to the left, which is the value2^1or just2.