Advertisement
touhid_xml

Multidimensional Array in C

Jul 14th, 2015
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. int myarray[5][3] = {
  3.     {
  4.         10,20,30
  5.     },
  6.     {
  7.         40,50,60
  8.     },
  9.     {
  10.         70,80,90
  11.     },
  12.     {
  13.         110,120,130
  14.     },
  15.     {
  16.         140,150,160
  17.     }
  18.  
  19.  
  20. };
  21.  
  22.  
  23. int main(){
  24. printf("%d\n",myarray[2][1]);
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement