This may sound a stupid question, but how does a computer actually know if two variables in memory hold the same value. E.g.
At a hardware level though, how does the processor know if the two digits are the same? Will the processor "AND" the two values in binary, and check them that way?Code:
int a=3, b=3;
if( a == b )
// do something.