Doubt doubt doubt

" if ( 1 ) { }; " and " if ( true ) { }; " —> same ???

And,

log8 = 3, but number of bits are 4.

Kya me kuch galat samajh raha hu number of bits calculate karne me ???

hello @parth_tyagi

in c++ yes…

main kuch samjha nahi ,kya puchna cha rahe ho?

Prateek bhaiya na bataya ki kisi bhi number me bits logN hoti. To me ye pooch raha hu ki if N=8, then number of bits is 4, not 3 (log8).

its -> floor(log(n) ) + 1