Created
January 13, 2012 16:53
-
-
Save arttuladhar/1607485 to your computer and use it in GitHub Desktop.
Guess the Output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace ConsoleApplication3 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| int a = 10; | |
| int? b = 20; | |
| int? c = null; | |
| System.Console.WriteLine(a + c ?? b); | |
| System.Console.ReadLine(); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment