-
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
-
pw_te_tm
Calculating photonic bands with plane wave expansion method
- 2009-05-01 19:52:38下载
- 积分:1
-
zuobiaobanhuan
坐标变换,实现3/2和2/2变换。异步电动机矢量控制中使用的(Coordinate transformation, to achieve 3/2 and 2/2 transformation. Vector control induction motor used)
- 2011-05-09 11:07:17下载
- 积分:1
-
bayes_classifier
贝叶斯分类器实现多类识别,主要用于两类的识别(BAYES_CLASSIFIER function calculates the discriminant functions for
two classes. )
- 2010-06-02 14:04:25下载
- 积分:1
-
TADFRKK
Please read THIS DOCUMENTE
- 2013-05-05 10:35:21下载
- 积分:1
-
matlab
关于matlab一些主要功能命令的使用和数学上一些经典算法的matlab的实现(Matlab commands on the use of some of the major features and some classical mathematical algorithm matlab implementation)
- 2011-12-27 14:22:54下载
- 积分:1
-
ekf
这是个扩展kalman滤波的历程,对初学最优估计饿人应该很有帮助。(This is a course of extended kalman filtering, optimal estimation of beginner hungry people should be helpful.)
- 2008-07-11 11:06:01下载
- 积分:1
-
matlab
说明: 一些数值计算用的MATLAB代码,适合初学MATLAB和数字计算的人使用,根据MATLAB的矩阵思想编写,对初学者更好的把握MATLAB编程思想很有用(Some numerical calculation using MATLAB code, suitable for novice MATLAB and digital computing use, according to the ideological preparation of MATLAB matrix, for beginners to grasp a better MATLAB programming ideas useful)
- 2008-09-18 22:40:29下载
- 积分:1
-
Cmean
基于C均值对数据进行聚类分析。数据基于网上的student里male和female数据,功能齐全(Based on C-means clustering analysis of the data. Data based on male and female student in data networks, fully functional)
- 2015-01-26 21:40:02下载
- 积分:1
-
1
说明: 卷积码维特比译码器设计输出完整电路进行误码率分析(Convolutional code Viterbi decoder integrated circuit design of the output bit error rate analysis)
- 2010-01-18 14:18:33下载
- 积分:1