hello i have a function that i have to make that stop at MAX or if it it has first line EOF but it doesnt work so i tried to minimize it abit then i puted it simple into 1 main and it still didnt work
here is the code
Code:#include <stdio.h> int main(void) { char array[10][100]; int i; for(i=0;i<10;i++) { fgets(array[i],100,stdin); if(array[i][0]==EOF) { puts("dude we are ........en breaking !!!!"); break; } } return 0; }