登录
首页 » Visual C++ » 5

5

于 2009-03-15 发布 文件大小:2KB
0 317
下载积分: 1 下载次数: 2

代码说明:

  一道程序编译顺序的考题,涉及到函数调用的先后顺序及运算符号的优先级等问题。下面我展开给你讲。 C的程序编译总是从main函数开始的,这道题的重点在“fun((int)fun(a+c,b),a-c)) ”语句。 系统首先要确定最外层 fun()函数的实参,第一个参数的确定需要递归调用fun()函数(不妨称其为内层函数)。内层函数的两个参数分别为x=a+b=2+8=10、y=b=5,执行函数体x+y=10+5=15,于是得外层函数的参数x=15。其另一个参数y=a-c=2-b=-6,再次执行函数体,得最终返回值x+y=15+(-6)=9。 (Compiling together the sequence of test procedures, involving the sequence of function calls and operator symbols, such as the priority problem. Now I give you to start speaking. Procedures for C compiler always start from the main function and at这道题the focus of " fun ((int) fun (a+ c, b), ac)) " statement. System must first determine the most outer layer of fun () function of real parameters, the first parameters of recursive calls required fun () function (may be called the inner function). Inner function separately for the two parameters x = a+ b = 2+8 = 10, y = b = 5, to execute the function body x+ y = 10+5 = 15, then the outer function parameters were x = 15 . Its another parameter y = ac = 2-b =- 6, once again to execute the function body may eventually return the value of x+ y = 15+ (-6) = 9.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • LFM
    线性调频信号雷达脉冲压缩仿真及程序,chirp信号的产生,压缩及效果(LFM singal simulation)
    2021-04-12 16:48:56下载
    积分:1
  • CTrayIconPosition_src
    一个控制托盘图标位置的例子(-An example of controling the ico position of tray)
    2003-10-23 11:23:05下载
    积分:1
  • 1.1.tar
    matlab的遗传算法源代码 matlab的遗传算法源代码(matlab的遗传算法源代码matlab的遗传算法源代码)
    2010-09-19 12:08:42下载
    积分:1
  • hunhebiancheng_123
    matlab与CC++混合编程程序,可以参考下,适合初学者(matlab and C C++ mixed programming program, you can refer to, for beginners)
    2013-07-12 12:27:54下载
    积分:1
  • 11
    说明:  主要描述在实际地震数据处理过程中, 小波函数的选取的几点应用(Describes the actual seismic data processing, the selection of wavelet function Some Applications)
    2011-03-07 15:15:31下载
    积分:1
  • aa
    说明:  有关机动目标跟踪,卡尔曼滤波相关的资料,对从事卡尔曼滤波研究,机动目标跟踪的朋友有参考价值 (The maneuvering target tracking, Kalman filtering relevant information, engaged in Kalman filtering, target tracking friends have reference value)
    2010-09-08 13:38:35下载
    积分:1
  • chaoliu
    说明:  配电网潮流计算,前推回代法,matlab程序(distribution system calculation)
    2010-04-13 15:33:55下载
    积分:1
  • CART
    matlab中cart决策树源代码,用于数据的分类和预测。(source code in matlab cart decision tree for data classification and prediction.)
    2013-10-28 15:08:58下载
    积分:1
  • BIG2GB
    文字转换,可用于繁体字和简体字之间的转换()
    2007-08-28 15:45:51下载
    积分:1
  • LLE
    流行学习英文文献,主要是局部线性嵌入方法的改进(Pop learning English literature, mainly locally linear embedding Improvement)
    2010-01-05 14:06:37下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载