- Where would you look for help about a C# keyword?
Answer:https://docs.microsoft.com/en-us/dotnet/articles/csharp/language-reference/keywords/
- Where would you look for solutions to common programming problems?
Answer:http://stackoverflow.com
- What happens when you divide an
int
variable by 0?
Answer:DivideByZeroException
is thrown when dividing an integer or decimal.
- What happens when you divide a
double
variable by0
?
Answer: The double
type contains a special value of Infinity
. Instances of floating-point numbers can have the NaN
(not a number), PositiveInfinity
, and NegativeInfinity
special values.
- What happens when you overflow an
int
variable, that is, set it to a value beyond its range?
Answer: It will loop unless you wrap the statement in a checked
block, in which case, OverflowException
will be thrown.
- What is the difference between
x = y++;
andx = ++y;
?
Answer: In x = y++;
, y
will be assigned to x
and then y
will be incremented, but in x...