Q88
MCQ2 marks, −0.5In the following program fragment, , , and TwoLog_n are integer variables, and is an array of integers. The variable is initialized to an integer , and TwoLog_n is initialized to the value of for (k = 3; k <= n; k++) A[k] = 0; for (k = 2; k <= TwoLog_n; k++) for (j = k+1; j <= n; j++) A[j] = A[j] || (j%k); for (j = 3; j <= n; j++) if (!A[j]) printf("%d", j); The set of numbers printed by this program fragment is
Sign in to save attempts.
Loading…