What is stored in beta after each of the following


1. Consider the following declaration:

int beta[3][3];

What is stored in beta after each of the following statements executes?


2. for (i = 0; i < 3; i++)

for (j = 0; j < 3; j++)

beta[i][j] = i + j;

Ans:

3. for (i = 0; i < 3; i++)

for (j = 0; j < 3; j++)

beta[i][j] = i * j;

Ans:

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: What is stored in beta after each of the following
Reference No:- TGS01248019

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)