Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

ASP.NET - scratching discs of code & entrepreneurship

Archive · View All
January 2012 8
April 2011 6
March 2011 4
August 2012 2
June 2011 2
May 2012 1
May 2011 1

John Katsiotis's Blog

Where is the bug? - C#

Apr 22 2011 12:00AM by John Katsiotis   

Below are a few lines of code written in C#. Is the code bug-free? What will this print in the console? Can you do it without VS?

static void AVeryCoolMethod()
{
var numbers = new[] { 1, 2, 3, 4, 5, 6 };

var ngt5 = numbers.Where(n => n > 5);

var n = ngt5.First().ToString();

Console.WriteLine(n, numbers);
}

Cheers!


Republished from djsolid - scratching discs of code & entrepreneurship [19 clicks].  Read the original version here [2 clicks].

John Katsiotis
988 · 0% · 26
0
Liked
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]