In this article, I would like to discuss some of the interesting c# interview questions,This post will be updated with new interesting c# interview questions.
Question and Answer
Q1. Consider the following code snippets
what will be the value of variable i after these two lines?
Ans : 18(5+6+7)
i++ will return 5 and then increment to 6
++i will increment 6 to 7 and then return 7
Q2. Maximum dimension allowed in C# araay ?
Ans : C# array support maximum 32 dimensions. refer this link remark section from msdn.
Q3 . Is it possible to call a c# function without using semicolon?
Usually we call c# function like
Ans : yes,For c# newbies this might be a tricky question ?. but it is really simple and you must have done this before.