Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged 全局变量的值

0 votes
437 views
1 answer
    【情况】 我定义了一个全局变量k → 在main函数中,令k=1 → 在被调函数中,令k=0(main是先令k=1,再调用的函数) → 最后cout<<k,k=0 我定义了一个全局变量i → 在main的for循环中 - for(i= ... 当被调函数的for循环修改为 - for(int i=0;...) 结果对了 【疑惑】 Q:为什么会发生这种情况?...
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...