1 Find Error Following Program Segments Assume Following Declarations Statements Int Zptr Q37114724

1. Find the error in each of the following program segments. Assume the following declarations and statements: int *zPtr; //

1. Find the error in each of the following program segments. Assume the following declarations and statements: int *zPtr; // zPtr w¡її reference array z int *aPtrO 0; int number; int z[5]-{1, 2, 3, 4, 5); a) ++zPtr; ANS: Ь) // use pointer to get first value of array zPtr; number ANS: c) assign array element 2 (the value 3) to number number tzPtr[ 2 ]; ANS: d) print entire array z for ( int i =

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.