-
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
-
gscale
matlab的gscale函数功能是将强度图像等映射到别的值范围。(Function of matlab gscale intensity images is mapped to another range.)
- 2013-05-22 18:00:54下载
- 积分:1
-
fuzzy
简单介绍了模糊控制器的隶属度函数的matlab代码输入(A brief introduction to the fuzzy controller matlab code input membership function)
- 2013-12-06 21:04:47下载
- 积分:1
-
MUSICdoc
一篇music算法的文档,名字为基于均匀线阵的改进MUSIC算法(Algorithm is a music document, the name is based on uniform linear array MUSIC algorithm for improved)
- 2011-05-21 19:18:39下载
- 积分:1
-
WRERTRETRR
四十三种差分格式源代码, 四十三种差分格式源代码(43 species difference format source code, 43 species difference format source code)
- 2007-05-09 16:07:17下载
- 积分:1
-
QPSK
simulation of QPSK over noise and rayliegh channel and compared with theoretical results
- 2014-09-22 08:07:35下载
- 积分:1
-
Link
LInk.c for ART2 development.
- 2014-11-22 02:50:02下载
- 积分:1
-
DrvInterface
该接口主要描述了关于应用层与90820之间的收发数据控制(description of the main interface for the application layer and between the TX 90820 Data Control)
- 2007-03-19 15:17:12下载
- 积分:1
-
houghbianhuan
hough变换,matlab编程。Hough变换是一种使用表决原理的参数估计技术。其原理是利用图像空间和Hough参数空间的点-线对偶性,把图像空间中的检测问题转换到参数空间。通过在参数空间里进行简单的累加统计,然后在Hough参数空间寻找累加器峰值的方法检测直线。(hough transform, matlab programming. Hough transform is a vote on the principle of using a parameter estimation techniques. The principle is the point of the image space using the Hough parameter space and line- duality converting the detection problem in the image space to the parameter space. By a simple statistical accumulated in the parameter space, and then in the Hough parameter space to find a method of detecting the peak accumulator line.)
- 2014-08-27 10:37:38下载
- 积分:1
-
left-crusion
消除左递归,包括自上而下的非递归分析和自上而下的分析(Eliminate left recursion, including non-recursive top-down analysis and top-down analysis)
- 2013-11-15 19:47:57下载
- 积分:1