C语言:“Process exited after 23.77 seconds with return value 3221225620”的解决方法。

C语言:“Process exited after 23.77 seconds with return value 3221225620”的解决方法。
在Dev-c++上运行代码时,编译运行时未报错,但输出的结果错误。
如下图:
在这里插入图片描述

对于这种情况检查scanf函数的输入模式是否有问题:

scanf("%d%d",&a&b);                      /*在shell中输入ab间应为空格*/

在这里插入图片描述

scanf("%d,%d",&a&b);                     /*在shell中输入ab间应为,且为英文模式*/

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_46755974/article/details/105490049