How fread function takes input from stdin

1.4k views Asked by At
c=fread(&ch,sizeof(char),100,stdin);

Will it stop reading from stdin if we give a string "stackoverflow" and hit enter or it will wait untill it gets 100 characters???

1

There are 1 answers

0
Dragos On

It will read only the first 100 chars