Hello,
I have two very simple questions.
1. I want to use fgets(text, MAX_WORDS, stdin) to read in a string file, where my array is text[MAX_WORDS]. But is there a way to make stdin a pointer instead to a 2nd array which can be a buffer?
2.Whats the difference between fgets(text, MAX_WORDS, stdin) and fgets(text, sizeof(MAX_WORDS), stdin)?
Thanks