预测以下C程序的输出
null
#include <stdio.h> int main() { int i = 0; do { printf ( "GeeqsQuiz " ); i = i++; } while (i < 5); return 0; } |
(A) Geeqsquit Geeqsquit Geeqsquit Geeqsquit Geeqsquit (B) 无限时间极客测验 (C) 未定义的行为 答复: (C) 说明: 下面的语句导致未定义的行为。
i = i++;
看见 https://www.geeksforgeeks.org/sequence-points-in-c-set-1/ 详细信息。 这个问题的小测验
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END