0

I am now studying CMU 15-213. Here's the code that confuses me:

#define ZLEN 5
typedef int zipdig[ZLEN] ;
#define UCOUNT 3

zipdig cmu = {1, 5, 2, 1, 3};
zipdig mit = {0, 2, 1, 3, 9};
zipdig ucb = {9, 4, 7, 2, 0};

int *univ[UCOUNT] = {mit, cmu, ucb};

I am a little confused about the last sentence, because I regard univ as an array of 3 integer pointers, so how can it point to integer array? For example, if I dereference the element in univ, should the result be an integer or an integer array? (I guess it should be an integer)

Lake_Lagunita
  • 521
  • 1
  • 4
  • 20

0 Answers0