Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Operators
What will be the output of the C#.NET code snippet given below? int i, j = 1, k; for (i = 0; i < 5; i++) { k = j++ + ++j; Console.Write(k + " "); }
8 4 16 12 20
4 8 12 16 20
4 8 16 32 64
2 4 6 8 10
Show Answer
Correct Answer:
4 8 12 16 20
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment