Memory consumed by an operator

Hello, I have a little doubt. Do operators consume memory just like numbers do ?

Like if I write:

8 & 5

then 8 is stored in memory in binary form. Similarly 5 will also consume some memory. But what about ‘&’ operator
Will it consume any memory in the bits?

& is just an operator which has an unique ASCII code, all operators whether they are bit wise, arithmetic or conditional operator has unique ASCII code which helps compiler to perform execution. If I say that a+b is an expression where a& b occupy a memory so will you say + will also have a memory? Of course not, it’s just an instruction that is to be performed. Same is the concept with & or bit wise operator :slight_smile:

1 Like

Ok, Thank you for clearing my doubt.