| http://www.w3.org/ns/prov#value | - @cokedude 1) Depending on the format string, it can be just as dangerous as gets (as this question demonstrates); 2) numeric overflow triggers undefined behavior, i.e. scanf(%d, &x) is allowed to crash if the user types too many digits; 3) writing a parser he is robust in the face of malformed input is easier if you do not use scanf.
|