Can somebody please walk me through this problem and show me how you get an output of:
[0]
[14]
[28]
I've been looking at it for the past 30 minutes and I still can't figure out how this code is supposed to work? Thanks in advance!
Code:What is the output of the following program? -------------------------------------------------------- #include <stdio.h> int main() { int x[20]; int count1, count2; for( count1 = 0; count1 < 20; count1++ ) { x[count1] = count1 * 2; } for( count2 = 0; count2 < 20; count2 += 7 ) { printf( "%d\n", x[count2] ); } return 0; }