LearnFrenzy
Sign in Take a free test

Typedef · typedef MCQ · Question 7

typedef int Row[4]; Row grid[3]; – what is grid? Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
Question 7 Back to Exercise

After typedef int Row[4];, what is the type of Row grid[3];?

  • A int[4][3]
  • B int[3][4] – 3 rows of 4 ints Correct
  • C int[12]
  • D int *[3]
Correct Answer: Option B

grid is an array of 3 elements, each a Row (int[4]). So it is int[3][4], 48 bytes – handy for naming the row type of a matrix.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links