c - How to access three dimensional array outside the loop -


i using c program. using ubuntu 14.04. following 1 of loops use.

for (x=0; x<1024; x++) {     (i=0; i<8; i++)     {         (j=0; j<8; j++)         {             arr[x][i][j]=vi[8*i+j+gi];         }     }     gi = gi+(8*8); } 

here 'vi' single dimensional array. array 'arr' has 1024 blocks of size 8x8. there provision access blocks such (with size 8x8) outside loop further processing?

if x array defined int x[1024][8][8], means x array of 1024 elements each element int[8][8], namely array of arrays of int. if want element, use subscription access it, same way access normal arrays. example, use x[0] access first 8x8 block of x, x[1023] access last block.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -