you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 3 years ago
int val = 3;
bool is_odd = val & (decltype(val))0x01 == (decltype (val))1;
  • source
  • parent