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

12th Nov 2017, 2:13 AM
DeltaTick
DeltaTick - avatar
4 Respuestas
+ 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.
12th Nov 2017, 2:44 AM
ChaoticDawg
ChaoticDawg - avatar
+ 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.
12th Nov 2017, 2:39 AM
ChaoticDawg
ChaoticDawg - avatar
+ 4
Like: (j & 1) What does that mean?
12th Nov 2017, 2:39 AM
DeltaTick
DeltaTick - avatar