Sometimes I found that scanf doesn't executed, after some research I found that it takes EOF from and and does not stop at the scanf statement. Can anybody please answer my these few queries?
1. then why it stops most of the time to get input?
2. when it stops and when it doesn't?
NB: I found these problems working with fork(), pipe, and dup.