Guest User

Untitled

a guest
Jun 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. int main(void)
  6. {
  7.         int **foo;
  8.  
  9.         foo = (int **) calloc(10, sizeof(int*));
  10.  
  11.         int i;
  12.         for(i = 0; i < 10; i++)
  13.         {
  14.                 foo[i] = (int *) calloc(10, sizeof(int));
  15.         }
  16.  
  17.  
  18.         foo[8][6] = 5;
  19.  
  20.         printf("%d\n", foo[8][6]);
  21. }
Add Comment
Please, Sign In to add comment