Question: What will be printed by the following program? #include using namespace std; int main() { int a(7), j, k, b[] = {36,49,70}; a[0] = 53,

 What will be printed by the following program? #include using namespace
std; int main() { int a(7), j, k, b[] = {36,49,70}; a[0]

What will be printed by the following program? #include using namespace std; int main() { int a(7), j, k, b[] = {36,49,70}; a[0] = 53, a[2] = 45; a[4] = 34; a[6] = 19; for(k=0; k=a[j]) { a[j+1) = b[k]; b[k] = a[i]; break;) } } printf("%d %d %d ", a[1], a[3], a[5]); printf("%d %d %d ", b[0], b[1], b[21); return 0; } 36 49 70 34 45 53 70 35 17 36 49 70 70 49 36 34 45 53 None of them

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!