Go to advanced search

by radapa
Sat May 30, 2020 8:22 pm
Forum: Java
Topic: initializing multi dim array R PI
Replies: 4
Views: 4389

Re: initializing multi dim array R PI

Multidimensional array initialization using dynamic memory allocation in C Programming a = (int **)malloc(rows * sizeof(int *)); for (i = 0; i < rows; i++) { a = (int *)malloc(cols * sizeof(int)); } Source: https://kodebinary.com/c-program-to-dynamically-allocate-two-dimensional-memory-arrays/

Go to advanced search