What will be output of this code:
static void Main(string[] args)
{
String first = "dotnetexpert2010";
string second = "atGmailDotCom";
Console.WriteLine( "{0}+{1} ", "hi" , first +second );
}
What output will this code give
public static void Main( )
{
short x = 1, y = 2;
short z = x+ y ;
Console.WriteLine( z );
}
What is the output of this code snippet
enum colors
{
red =2,
blue=10,
green
}
static void Main(string[] args)
{
colors ct = colors.green;
int a = ( int ) ct;
Console.WriteLine( a );
}
What output will this code give
enum colors
{
red ,
black =10 ,
blue
}
static void Main(string[] args)
{
colors ct = colors.red;
Console.WriteLine( ct.ToString( ) );
}
" this " keyword refer to a pointer which is available to