?
What will be the output of the following C# code?
What will be the output of the following C# code?
int i, j = 1, k;
for (i = 0; i < 3; i++)
{
k = j++ - ++j;
Console.Write(k + " ");
}
int i, j = 1, k;
for (i = 0; i < 3; i++)
{
k = j++ - ++j;
Console.Write(k + " ");
}
Join the Discussion
Login to post a comment or share your explanation.
Login