c code for valid netmask

后端 未结 0 1081
一向
一向 2021-02-15 20:12

I there any way to check that 32 bit netmask is valid or not using bitwise operator?

I have to check from msb side that \'1\' are in continuous stream or not. eg 1111111

相关标签:
回答
  • 消灭零回复
提交回复
热议问题