Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

sat_num=3; sut_num=3; for (i=0;i < sat_num;i++) for(j=0;j < sut_num;j++) A [i][j]= i*(j+1)*(i+2)+(i-1); k=0; for(i=0;i < sat_num;i++) for(j=0;j < sut_num;j++) { vektor[k]=A[i][j]; # i=0 , j=0

sat_num=3; sut_num=3; for (i=0;i< sat_num;i++) for(j=0;j< sut_num;j++) A [i][j]= i*(j+1)*(i+2)+(i-1);

k=0; for(i=0;i< sat_num;i++) for(j=0;j< sut_num;j++) { vektor[k]=A[i][j]; # i=0 , j=0 , k=0 , vektor[0]=A[0][0]= -1

k=k+1; }

this c code will convert matrix (A) into one dimensional array (vektor)

a) write the values of each variable for each line ( the result matrix of each line)

b) what are the final values of matrix (A) and (vektor) ?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

9. Describe the characteristics of power.

Answered: 1 week ago