I cannot understand how this expression gets evaluated ..
From what I know ~ has higher priority . So the expression becomes
But the answer that I got was 0. I know it is some thing to do with the fact that ~ is right associative but I cannot put my finger on it