c語言 打印二進制數

原本printf沒有這個功能,itoa並非全部的地方都支持。本身寫個簡單的調試用。html   void bprint(int p){ int i=0; int bit1 = 1; for (i=sizeof (p) * 8-1;i>=0; i--){ unsigned int x = (((bit1<<i)&p) !
相關文章
相關標籤/搜索