c - What Does this << Statement Mean? -


this question has answer here:

i working on simple project in c encountered statement in 1 of tutorials.

int = 1 << 2 ;    

what statement do?

this called shift operator. shift de bits n positions left. shifting bits 1 positions same multiplying or dividing 2.


Comments