The trouble is you think you have time. Your success depends on how you utilize your time.

Answer of Dry running practice program #1 with explanation

Answer of Dry running practice program #1 is:


 4






How it worked ?
The answer is that, Array (arr[ ]) have "four" elements so in cout it says that "sizeof(arr)" divide by "sizeof(arr[0])" . "sizeof(arr)" have 4 elements so its size is 4 and "sizeof(arr[0])" have only 1 element , means the element at the index 0 of the array. so its size is 1. Then 4/1=4 , So the answer is 4.

For the Question of this answer CLICK HERE.

No comments:

Post a Comment