IGATE Interview Question

Some random tricky questions on bit manipulation, structures and unions.