Archive for August 21st, 2012
It seems like such a trivial thing to be talking about but not knowing the difference between the two operators can make a huge difference between working code and code that only seems to work.
Let me illustrate:
bool b = false; bool c = true; if(b & c) // do something if(b && c) // do something
Republished by Blog Post Promoter