Machine-translated by Google. Questions are authored in English.
Top

Discussion

What is meaning of following declaration ?

int arr[20];

 

  • A.Integer Array of size 20
  • B.None of these
  • C.Array of size 20 that can have integer address
  • D.Array of Size 20

Answer: A

Correct answer: Integer Array of size 20

int arr[20]; reserves room for 20 values of type int, laid out consecutively, with subscripts 0 to 19. Read the declaration outwards from the name: arr is an array of 20, of int.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.