Archive for March 16th, 2009

&& vs & and | vs ||… What’s the difference?

color-01 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

Read the rest of this entry »

Other Related Items:

Premium Grade Rubberized Hard Crystal Snap-on Case for the Motorola Droid - Rubber Orange ColorPremium Grade Rubberized Hard Crystal Snap-on Case for the Motorola Droid - Rubber Orange ColorThis premium grade hard snap-on crystal case will protect your wireless device from scratches and scuffs, keep your wireless device looking like new. ... Read More >
Easy Trucking Software Owner Operator VersionEasy Trucking Software Owner Operator VersionEasy trucking software is designed for the owner operator and small fleet owner. It was created to be very easy to use. With it you can keep track of ... Read More >

If you're new here, you may want to subscribe to the mailing list to get notifications of new post and a virtual tour of past topics. Thanks for visiting!

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor