how to initialize an array?
c
Solution
Since the 3-d array is a contiguous block of memory, you can view it as a 1-d array
int i, *dummy2 = &dummy[0][0][0];
for(i = 0; i < 4*4*1024; ++i)
dummy2[i] = 12;
Problem
I have a 3dimensional array, how do I initialize it to a default value without having 3 loops. ``` dummy[4][4][1024] ``` , how do I initialize all the elements to 12?