English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

use pointer
int **arrayptr
arrayptr = (int**)x*malloc(sizeof(int*));
for(i=0;i arrayptr[i]=(int*)y*malloc(sizeof(int));

2007-03-18 23:45:19 · answer #1 · answered by Anonymous · 0 0

make sure you put the size of your array... for example
int x = 2;
int y = 3;
int number[ x ][ y ];

// x stands for row size
// y stands for column size

2007-03-19 04:20:33 · answer #2 · answered by Liviawarty J 2 · 0 1

u have to define the size of the column and line

2007-03-19 05:50:24 · answer #3 · answered by abd 5 · 0 1

in declaration section write such as

int row=31, colon=34;
int arrayname[row][colon];

2007-03-19 04:18:35 · answer #4 · answered by iyiogrenci 6 · 0 2

fedest.com, questions and answers