Detecting integral overflow with scanf

后端 未结 0 1957
心在旅途
心在旅途 2020-12-15 23:56

When recently answering another question, I discovered a problem with code like:

int n;
scanf (\"%d\", &n);

With strtol, y

相关标签:
回答
  • 消灭零回复
提交回复
热议问题