-
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
-
PRJ_D313_select4
aam matlab gui 工具包,功能很强大(aam matlab gui toolkit, very powerful)
- 2010-11-09 21:47:34下载
- 积分:1
-
shiyan
在MATLAB环境下四个实验,压缩解压以便日后使用(change picture)
- 2010-05-14 11:12:50下载
- 积分:1
-
pca
集成了C代码和MATLAB的主成分分析代码,可以用这两种方法解决求取特征值和特征向量。(C code and MATLAB integrates principal component analysis code, you can use two methods to solve strike eigenvalues and eigenvectors.)
- 2013-09-10 19:45:04下载
- 积分:1
-
InsProDisk.Partial.Src
InsProDisk.Partial.Src.rar 一个虚拟硬盘的源代码,用户级别的(InsProDisk.Partial.Src.rar a virtual hard disk source code user level)
- 2006-11-04 00:23:43下载
- 积分:1
-
xt10-4
说明: 有两个矩阵a和b,均为2行3列。求矩阵之和。(There are two matrices a and b, are two rows 3. Demand matrices, and.)
- 2010-03-17 20:19:01下载
- 积分:1
-
VCreadfilesbyline(.TXT)
逐行读取文本中的数据,自动存储到一个序列数组中(Text data read line by line, is automatically stored into an array sequence)
- 2013-10-07 11:26:06下载
- 积分:1
-
VC-matlab
详细的介绍了matlab和VC++混合编程时的方法过程,对于想实现混编的同志很有帮助,希望能帮得到大家。(A detailed description of the matlab mixed programming software and other methods when programming process, for those who want to achieve mixed comrades helpful, hoping to help get everyone.)
- 2013-05-23 10:28:59下载
- 积分:1
-
Codeforces
Solution for some problems in Codeforces
- 2014-01-09 23:02:19下载
- 积分:1
-
polynomial_lab
Polynomial code in c++, contain differnet functions
- 2013-01-19 20:00:10下载
- 积分:1