-
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
-
example_bpnetronetwork
BP算法例子:用一个五层的神经网络去逼近函数(example_bpnetronetwork_5layers)
- 2009-11-20 19:01:54下载
- 积分:1
-
radar
说明: 主要描述了雷达的工作原理及性能,为研究雷达数据处理的朋友提供基础的知识(Describes the principle and performance of radar, radar data processing for the study provide a basis of knowledge friend)
- 2011-02-22 10:35:18下载
- 积分:1
-
3-DOF-linear-structure1
在分析结构损伤后,给结构添加噪声,再对结构不同损伤情况下的分析(After the analysis of structural damage to the structure adding noise, and then the structure is different in case of damage)
- 2013-10-26 09:53:56下载
- 积分:1
-
hx711
Arduino hx711库文件,在编写程序省去很大力气,很好用的头文件,大力推荐(Arduino hx711 library files, eliminating the need to write programs in a lot of effort, a good use of header files, strongly recommended)
- 2014-11-09 19:32:57下载
- 积分:1
-
BorlandCBuildeMATLAB
基于BorlandC_Builder和MATLAB混合编程的仿真应用.pdf(based on MATLAB and mixed BorlandC_Builder Simulation Application Programming. P df)
- 2007-04-09 15:01:25下载
- 积分:1
-
bp-algorithm-CPP-Fortran-and-Matlab
分别用C++,matlab以及Fortran语言实现bp算法(bp algorithm using C++, matlaband Fortran language)
- 2011-05-10 15:21:49下载
- 积分:1
-
engine
vc实现matlab engine调用的功能程序(a program to realize the matlab engine function developped by VC++)
- 2014-10-28 16:17:06下载
- 积分:1
-
MATLAB-c
msk的调制解调MATLAB源代码,很不错,值得看看(msk modulation and demodulation MATLAB source code, very good, worth a look)
- 2013-11-15 16:35:31下载
- 积分:1
-
bilidaoyinfa
比例导引法的几个matlab程序,根据绝对弹道进行编程设计(Proportional navigation law matlab program, according to the absolute ballistic Programming)
- 2013-05-18 15:16:35下载
- 积分:1