Its giving a Segmentation Fault Can u see to it once?
Code:
Type = INT
ROW = 320
COL = 250
FORMAT = %x
TYPE *buf1[ROW][COL]
if((stream = fopen(argv[1],"rb" ))!= NULL )
{
numread = fread(buf1,sizeof(int),size,stream );
fclose( stream );
printf( "Number of items read = %d\n", numread );
if[(pos < 240000)
{
for(row=0;row<320;row++){
for(col=0;col<250;col++){
if (buf1[row][col] != 0)
printf(FORMAT,buf1[pos]);
pos++;
}
}
}
And i have declared buf1[row][col]


