Explain the following C++ method

前端 未结 4 971
日久生厌
日久生厌 2021-01-23 18:06
#define XL     33           
#define OR      113          
#define NOR     313     
#define TN     344  

int to_bits(int critn,char *mask)
{
       unsigned int x;
             


        
4条回答
  •  孤街浪徒
    2021-01-23 18:26

    >> is right shift operator.

    for e.g 8 > 3 will give you 1, right shift binary value of 8 by 3 places

    1000(binary of 8) right shift by 3 places = 0001 (1 in decimal)
    

提交回复
热议问题