Thursday, 19 July 2012

Use of return keyword in C sharp

Use of return keyword in C sharp


using System;
class car
{

public static int Main()
{
int a=2, b=3, c;
c=a+b;
Console.WriteLine(c);
return 99999; // we can write any value in the range of int
}
}

// here value of int is like a object of int

No comments:

Post a Comment