while(questions != EOF)
Well, questions is in this case a pointer to the first element of a char array. But you want to check the value (not the adress) that the pointer is pointing to, so you would need at least something like this:
while(*questions != EOF)
But that's not what you want, I guess.
c!=EOF where c=fscanf(fp,"%s",oneword);
Here, the variable c is assigned the return value of the fscanf() function to test for EOF.
So, what you want may be to check the return value of the function you are using for reading from the text file.
Perhaps something like this:
Code:
#define SIZE 100
...
FILE *fd;
...
char questions[SIZE];
...
while(fgets(questions, SIZE, fd) != NULL)
{
do_something;
}