-
5
一道程序编译顺序的考题,涉及到函数调用的先后顺序及运算符号的优先级等问题。下面我展开给你讲。
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.)
- 2009-03-15 15:36:23下载
- 积分:1
-
phase-field-simulation
This is a phase field simulation example to simulate the segeration of two phase flow.
- 2012-05-04 23:27:26下载
- 积分:1
-
att
奇异吸引子,混沌吸引子,复杂系统理论,画法代码。(Strange attractor, chaotic attractor, complex systems theory, painting code.)
- 2013-12-17 13:00:27下载
- 积分:1
-
matlab
详细的介绍了matlab与其他编程语言的结合的方法和使用(A detailed description of the matlab programming language combined with other methods and the use of)
- 2013-05-23 10:37:06下载
- 积分:1
-
kt878
仿真图是速度、距离、幅度三维图像,合成孔径雷达(SAR)目标成像仿真,可以广泛的应用于数据预测及数据分析。( FIG simulation speed, distance, amplitude three-dimensional image, Synthetic Aperture Radar (SAR) imaging simulation target, Can be widely used in data analysis and forecast data.)
- 2017-05-07 23:04:37下载
- 积分:1
-
fanuc18imb
fanuc 18ib cnc system backup
- 2015-02-20 03:11:15下载
- 积分:1
-
qr
说明: qr变换和householder求特征值的算法,可与matlab结果比对(qr transform and householder eigenvalue algorithm, the results compare with matlab)
- 2014-10-16 10:35:19下载
- 积分:1
-
ziyouzhendong
关于自振动仿真的源代码,可以看看,第一传求关注,支持。(Source Courseware)
- 2011-05-14 07:54:18下载
- 积分:1
-
zemax-Matlab
ppt文件,讲述如何使用matlab调用zemax中数据的文档(ppt file explains how to use the data in matlab call zemax document)
- 2013-08-07 13:09:18下载
- 积分:1
-
final_proj1
adaptive huffman coding and decoding in matlab..
- 2010-07-04 17:29:14下载
- 积分:1