Quiz on Arrays

Check your understanding of arrays by completing this quiz.

1

Which of the following statements is TRUE about the code snippet given below?

int arr[ ] = { 23, 34, 45, 56, 67 } ;
arr++ ;
A)

Every element of the array would get incremented by 1

B)

arr would start pointing to 34

C)

arr acts as a constant pointer to the 0th0^{th} element and hence cannot be changed through ++

D)

Instead of arr++, arr+=1 should be used

Question 1 of 50 attempted

Get hands-on with 1400+ tech skills courses.