- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
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 + " ");
}

1.8 4 16 12 20

2. 4 8 12 16 20

3.4 8 16 32 64

4.2 4 6 8 10

Posted Date:-2021-02-25 10:28:15


More MCQS Questions and answers

Search