Question: Fall 2O Entro to Procedural Programming cIS 190 Name 9 (4 5) to 15 (9.) Total Problem 1: A) Find the error in each of

 Fall 2O Entro to Procedural Programming cIS 190 Name 9 (4

Fall 2O Entro to Procedural Programming cIS 190 Name 9 (4 5) to 15 (9.) Total Problem 1: A) Find the error in each of the following program segments and describe how to correct it. Assume int aptr-NULL int number, i int zfs1.2. 3, 4 5 aPtr a) b) +taPtr; use pointer to assign first value of array to number*/ number zPtr; number- "aPtr[2]: for (i -0; i-5; i+) c) assign array element 2 (the value 3) to number d) print entire array z printf("%d ", aPtr+i); e) assign the value pointed to by aPtr to number number aPtr f ++z B) Which of the following statements concerning passing array elements is true? a) arrays cannot be passed to functions; b) it is not possible to pass just a row of a two-dimensional array to a function; c) when a 3D array is passed to a function, there are 4 different ways to do so; d) when an array is passed to a function, it is always pass by value; e) when a 2D array is passed to a function, only the size of the second dimension must be specifie Problem 2: Solve the pointer expressions in the table below: Declarations and initializations int double x; Equivalent expression Value Expression * *& p)

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!