Question: private void Form 2 _ Load ( object sender , EventArgs e ) { int [ ] aa = new int [ ] { 2

private void Form2_Load(object sender, EventArgs e)
{
int[] aa = new int[]{2,8,16,32};
int i;
for (i =0; i < aa.Length; i++)
{
label1.Text = aa[i]+"";
label2.Text = aa[(i +1)%3]+"";
label3.Text = aa[(i +2)%3]+"";
label4.Text = aa[(i +3)%3]+"";
}
}
The output on label1, label2, label 3 and label4 respectively is
a.
16
32
2
8
b.
16
32
8
2
c.
2
8
16
32
d.
32
8
16
2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!