What will be the final value of hist[0] after executing the following code segment?
int image[4][4]={{1,0,0,1},{0,0,0,1}, {1,1,0,1}, {1,1,1,1}};
int hist[2]={0};
int i,j;
for(i=0;i<4;i++)
for(j=0;j<4;j++)
hist[image[i][j]]++;
Select one:
a. Undefined
b. 10
c. 6
d. 0