Hey, as part of a function for a homework assignment I need to check whether scanf reached EOF.
the code line goes like this :
for some reason the array wont recieve any value from "scanf" , and when I check its values with printf it will stay all zerosCode:res=scanf(" %lf",&array[i][j]); if (res==EOF) { return i; } printf("cell is %d\n",array[i][j])
am I doing something wrong ?