Sha*_*Raj 0 c runtime-error
我没有找到该程序的正确输出.它给出了运行时错误.
#include <stdio.h> int main() { int c = 5, no = 10; do { no /= c; } while(c--); printf ("%d\n", no); return 0; }
Eug*_*Sh. 5
它除以零.由于您在循环计数器中使用了后递减c,因此它将成为0最后一次迭代.
c
0
归档时间:
11 年,3 月 前
查看次数:
57 次
最近记录:
11 年,1 月 前