you might also try this:
#include<stdio.h>
#include<stdlib.h>
#define _MAXSIZE_ 100
typedef int RowArray[_MAXSIZE_];
void main()
{
int ROW, COL;
int i, j, k;
RowArray *array; /*declaration of the array*/
k = 1;
/* input the array */
printf("Array input\n"

;
printf("Enter the value for the \"ROW\": "

;
scanf("%d",&ROW);
printf("Enter the value for \"COL\": "

;
scanf("%d",&COL);
/*allocate memory for the array*/
array = ( RowArray * )malloc(ROW * COL * sizeof(int));
/*input the array*/
for( i = 0; i < ROW; i++ )
{
for( j = 0; j < COL; j++ )
{
printf("value%d = ", k );
scanf("%d",&array
[j]);
k++;
}
}
/* output the array*/
printf("\nArray output\n"
;
for( i = 0; i < ROW; i++ )
{
for( j = 0; j < COL; j++ )
{
printf("array[%d][%d] = %d\n", i, j, array[j]);
}
}
}