Advertisement
Guest User

Untitled

a guest
Aug 13th, 2021
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. void use_array(int **arg) {
  3.  
  4.     printf("%d\n", arg[1][1]);
  5. }
  6. int main(void) {
  7.     int **array = malloc(sizeof(int)*2);
  8.     array[0] = malloc(sizeof(int)*2);
  9.     array[1] = malloc(sizeof(int)*2);
  10.     use_array(array);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement