Think Identical
Thursday, February 14, 2013
Guess the output of the following Code !!!
static
void
Main(
string
[] args)
{
Console
.WriteLine(
"A.a={0}, B.b={1}"
,
A
.a,
B
.b);
}
class
A
{
public
static
int
a =
B
.b + 1;
}
class
B
{
public
static
int
b =
A
.a + 1;
}
1 comment:
Arif Vadsarya
March 8, 2013 at 2:10 AM
A.a=2, B.b=1
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
A.a=2, B.b=1
ReplyDelete