Disabling the flush in the above program won't make much of a difference. It's just a matter of the
write(2) happening after the
print (with buffering disabled), or before the
close (with buffering enabled). But since the only
print happens before the
close, it's not going to make much of a difference. In either case, there will be the same number of
write(2)s.