" 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 ???
" 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 ???
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