+ 4
What does the ampersand(&) character mean in C++?
Sorry for this kind of a question!!(I'm supposed to know.đ) But I just seemed to forget!!đ Can anyone help?
4 RĂ©ponses
+ 6
That is a bitwise AND
It take the bits of the integers and performs an AND on them.
See here:
https://www.cprogramming.com/tutorial/bitwise_operators.html
If you need further help after reading this, just ask.
+ 5
Depends on how it is being used. Could be a bitwise and. Could be used as the address of operator. Post some code as to how you're wanting to use or re-learn it.
+ 4
Like:
(j & 1)
What does that mean?