Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <assert.h>
- #include <time.h>
- int main()
- {
- srand(time(NULL));
- int size = rand() % 50;
- int **********array;
- array = malloc(size * sizeof(int*********));
- for (int a = 0; a < size; ++a) {
- array[a] = malloc(size * sizeof(int********));
- for (int b = 0; b < size; ++b) {
- array[a][b] = malloc(size * sizeof(int*******));
- for (int c = 0; c < size; ++c) {
- array[a][b][c] = malloc(size * sizeof(int******));
- for (int d = 0; d < size; ++d) {
- array[a][b][c][d] = malloc(size * sizeof(int*****));
- for (int e = 0; e < size; ++e) {
- array[a][b][c][d][e] = malloc(size * sizeof(int****));
- for (int f = 0; f < size; ++f) {
- array[a][b][c][d][e][f] = malloc(size * sizeof(int***));
- for (int g = 0; g < size; ++g) {
- array[a][b][c][d][e][f][g] = malloc(size * sizeof(int**));
- for (int k = 0; k < size; ++k) {
- array[a][b][c][d][e][f][g][k] = malloc(size * sizeof(int*));
- for (int l = 0; l < size; ++l) {
- array[a][b][c][d][e][f][g][k][l] = malloc(size);
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement