System.Blog.Martens.Ben

The Tech Blog of Ben Martens

May, 2008

Blog - About

About The Tech Blog of Ben Martens

I'm an SDET in the Connected Systems Division. The Calendar Printing Aassistance for Office is the first public product to be released from our group and is available with Office12.

  • System.Blog.Martens.Ben

    Brain Teaser #3

    • 10 Comments
    This brain teaser also comes courtesy of Simeon Cran. What will the following code output? When you think you know, copy the code into Foo.cs and run “csc Foo.cs” and then run “Foo.exe”. Did it output what you expected? The brain...
  • System.Blog.Martens.Ben

    Brain Teaser #2 Answer

    • 0 Comments
    Have read the question yet? Read it here . The problem is pretty simple if you have 00111 (where all the bits after the first 1 are also 1’s.) You shift right, run the NOT operator, and then AND that result with the original. For example: ORIGINAL...
  • System.Blog.Martens.Ben

    Brain Teaser #3 Answer

    • 0 Comments
    If you haven't read the question yet, you can read it here . The answer for this lies in the C# specification. Specifically, read section 8.13. There are two different ways you can use a using statement and in this case we are interested in the second...
Page 1 of 1 (3 items)