in Programming in C retagged by
278 views
0 votes
0 votes

Someone please explain. Function of ‘^’

in Programming in C retagged by
278 views

1 comment

$(x << y)$ - Left shifts a binary number “x” by “y”.

(^) – It is the XOR symbol.

So, it does,

$10010101$ ^ $(1<<2)$ = $10010101$^$100$ = $10010001$ = $(145)_{10}$
3
3

1 Answer

0 votes
0 votes

 I think it is self explanatory,if not then ask

Related questions