+ 5

int x=168; int y=60; int z; z=x&y; What will be the value / output of z??

29th Aug 2017, 9:20 PM
Ifiokobong Akpan
Ifiokobong Akpan - avatar
4 ответов
+ 7
bitwise AND (when both digits are 1) 10101000 = 128+0+32+0+8+0+0+0 = 168 00111010 = 0+0+32+16+8+0+2+0 = 60 00101000 = 0+0+32+0+8+0+0+0 = 40
29th Aug 2017, 9:35 PM
hamletmun
hamletmun - avatar
+ 6
how did you do it?
29th Aug 2017, 9:24 PM
Ifiokobong Akpan
Ifiokobong Akpan - avatar
+ 4
thanks
29th Aug 2017, 9:38 PM
Ifiokobong Akpan
Ifiokobong Akpan - avatar
+ 2
40
29th Aug 2017, 9:23 PM
hamletmun
hamletmun - avatar