Use bitwise operators to set and check flags - Tektutor - A Software consulting & training company