Question: Write a macro to set the nth bit ?

Solution: #define set(val,n) val|=1<<n