A Bit Of This And That (What does (&) sign do?)


#1

So, I did what the instructions say and passed the exercise, but in fact I didn't understand what the and(&) operator does. I don't want to pass without really understanding so I came here to seek for help. I appreciate anyone's help to make me understand what this sign does.


#2

its in the information of the exercise:

0 & 0 = 0
0 & 1 = 0
1 & 0 = 0
1 & 1 = 1

its fairly similair to the and operator, only if both conditions are true (1 & 1) we get 1, else we get 0


#3

I got it, thank you.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.