(Choose 1 answer)
int n = 10, i;
What is the output when the sample code below is executed?
int k = 0;
for (i=1; i<n; i = i*2) k++;
printf("i: %d, k: %d", i, k);
printf("");
A. i: 16, k: 5
B. i: 16, k: 3
C. i: 8, k: 4
D. i: 16, k: 4
E. i: 10, k: 4
36