-
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
-
anpr
automatic number plate using C
- 2010-05-13 23:42:20下载
- 积分:1
-
shengyazhuanhuan
用于进行声压转换的matlab文件,声压数据来源于ansys软件的计算后导出来的。(Used for sound pressure to convert matlab file, sound pressure data from the calculation software ansys guide out.)
- 2013-09-26 09:10:30下载
- 积分:1
-
层次分析法
说明: 通过使用matlab,对层次分析法进行求解,从而进一步确定权重,更快的解决问题。(By using matlab, the analytic hierarchy process (AHP) is solved to further determine the weight and solve the problem more quickly.)
- 2019-04-18 08:56:05下载
- 积分:1
-
assitant
编制一个统计特定单词在文本串中出现的次数和位置的程序(The preparation of a statistical specific words in the text string appear in the number and location of the procedure)
- 2007-11-29 22:13:38下载
- 积分:1
-
Ooocr
正交扩频码ooc的matlabb代码。五个用户情况
(Orthogonal spread spectrum the code ooc matlabb code. Five users)
- 2012-08-16 06:37:55下载
- 积分:1
-
de_OFDM
OFDM仿真C++代码,相互学习,相互帮助(OFDM simulation C++ code, learn each other and help each other)
- 2015-01-22 20:04:23下载
- 积分:1
-
Project1
C++ 生成画图数据,main函数开启matlab engine,分配存储空间,绘图(C++ calls matlab engine to plot graphics)
- 2014-01-19 00:23:08下载
- 积分:1
-
dandaofangzhen
c++ 通用弹道仿真计算程序(经典版)lalalalla(C dandaofangzhenchengxudfdfdfdfdf)
- 2013-09-08 13:55:54下载
- 积分:1
-
matlab5
利用matlab进行频域低通和带通滤波,效果不错(Frequency domain using matlab low-pass and band-pass filtering)
- 2013-09-15 10:48:39下载
- 积分:1