Hey, as part of a function for a homework assignment I need to check whether scanf reached EOF.
the code line goes like this :


res=scanf(" %lf",&array[i][j]);
if (res==EOF)
...