0

I have 2D array like :

data[10][7] = {{1, 0, 0, 0, 1, 1, 1}, {0, 0, 0, 1, 1, 0, 0}, *and so on*}

So how do i describe every columns as different variable? for example every first column for both row as variable a, second column for both row as variable b, and so on?

ZEDT
  • 9
  • 1
  • The thing you are looking for is named a struct, see for instance https://stackoverflow.com/questions/330793/how-to-initialize-a-struct-in-accordance-with-c-programming-language-standards – Alftheo Mar 27 '20 at 10:56
  • Study _union type punning_. – Lundin Mar 27 '20 at 11:47

0 Answers0