im so tired of this idun understand wtf can be wrong with it, its just ridiculous
i get warning: assignment makes integer from pointer without a castCode:int main(int argc, char* argv[])
{
FILE *fp;
fp = fopen("input1.txt", "r");
//variable declarations
int array[500];
int i = 0;
char buffer[300];
char word[300];
while (fgets(buffer, sizeof(buffer), fp) != NULL)
{
sscanf(buffer, "%s", word);
printf("%s\n", word);
array[0] = word; // <---------- error ! why
//printf("%i\n", array[i]);
i++;
} //end of file
}
//end of main
why
why the hell