Course Solutions Uncategorized (Solved) : 41 1 Const Sizet Size 10 2 Int Array Size 3 Int Index 4 Index 0 5 Index Set Nums Cout Nums Q38187885 . . . .

(Solved) : 41 1 Const Sizet Size 10 2 Int Array Size 3 Int Index 4 Index 0 5 Index Set Nums Cout Nums Q38187885 . . . .

 

41. /* 1 */ const size_t SIZE = 10;
/* 2 */ int array[ SIZE ];
/* 3 */ int index;
/* 4 */ for (index=0;
/* 5 */ index<=SIZE;
/* 6 */ ++index)
/* 7 */ {
/* 8 */ array[index] = 0;   
/* 9 */ }

Which line may cause an error?

a. /* 1 */ b. /* 2 */ c. /* 4 */ d. /* 5 */ e. /* 6 */

42. Suppose an array has been declared as int arr[3];
You cannot use the expression arr++;

T__ F__   
  

43. The following code-segment is syntactically incorrect:

const size_t SIZE = 4;
int oldValues[SIZE] = { 10, 20, 30, 40 };
int newValues[SIZE];
newValues

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post