C++填空题1 求详解#include using namespace std;int fun(int x,int y){cout

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/30 06:41:16
C++填空题1 求详解#include using namespace std;int fun(int x,int y){cout

C++填空题1 求详解#include using namespace std;int fun(int x,int y){cout
C++填空题1 求详解
#include
using namespace std;
int fun(int x,int y)
{cout

C++填空题1 求详解#include using namespace std;int fun(int x,int y){cout
输出的第一行内容是
6 4
上面的结果是在VC下编译运行后得到的.
当然也有可能是
3 6
这取决于所采用的编译器.
在VC下,参数是从右向左执行的.也就是说
m=fun(fun(a,b),fun(b,k));
fun(b,k)是先于fun(a,b)执行的.
所以呢,就是先输出6 4
然后输出3 6