Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

44) A random number generator was used to populate the following array: int two_

ID: 3713587 • Letter: 4

Question

44) A random number generator was used to populate the following array:   

            int two_dim[5][3]={1098, 3489, 89999,

                                                -100985, 5098,-98045,

                                                0xff98, 0x5555, -98000,

                                                5790, 0, 0xff59,

                                                989898, 1, 202}, *p[5],i;

            for(i=0;i<5;i++)p[i]=&two_dim[i][0];

            what are the following values:

            a) two_dim[3][1]=?

            b) p[3][2]=?

            c) two_dim[0][2]-p[3][1]=?

            d) p[0][0]-two_dim[0][0]=?

            e) two_dim[1][2]*p[4][1]=?

Explanation / Answer

//if you have any query then comment below.please rate the answer

a) two_dim[3][1]= 0

            b) p[3][2]=65369

            c) two_dim[0][2]-p[3][1]= 89999

            d) p[0][0]-two_dim[0][0]= 0

            e) two_dim[1][2]*p[4][1]= -098045

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote