请写出下面程序的输出:
发布于 2022-03-03 16:34:46
请写出下面程序的输出:
#include <iostream> using namespace std unsigned int GetTestNum() { static unsigned int a = 0 static unsigned int b = 1 int c = a + b a = b b = c return c } int main(int argc, char* argv[]) { for (int i = 0 i < 9 i++) { GetTestNum() } cout << GetTestNum() << endl }
登录后免费查看答案
关注者
0
被浏览
33