Created
January 25, 2018 18:18
-
-
Save ymollard/0df5fea5bdeaed5e18b41ec978f3e982 to your computer and use it in GitHub Desktop.
Declare arrays for subscript operator in C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size_t len = 10; | |
int (*arr)[100][3] = malloc(len * sizeof *arr); | |
arr[9][99][2] = 123; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment