Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void use_array(int **arg) {
- printf("%d\n", arg[1][1]);
- }
- int main(void) {
- int **array = malloc(sizeof(int)*2);
- array[0] = malloc(sizeof(int)*2);
- array[1] = malloc(sizeof(int)*2);
- use_array(array);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement