Home > Back-end >  Pointer to an array
Pointer to an array

Time:09-19

Like
Separate int ar [2] [2]. The statement said the array or pointer
And
Int ar [2], [2].
Ar [2], [2]={{1, 2}, {3, 4};
There are different

CodePudding user response:

Separate int ar [2] [2]. Is to define an array of

Ar [2], [2]={{1, 2}, {3, 4}; Compile pass

Can only be defined at the assignment

Int ar [2], [2]={{1, 2}, {3, 4};

CodePudding user response:

Int ar [2] [3]. Defines a two dimensional array
Ar [1] [2]=5; Array element value assignment
  • Related