登录
首页 » Visual C++ » 5

5

于 2009-03-15 发布 文件大小:2KB
0 333
下载积分: 1 下载次数: 2

代码说明:

  一道程序编译顺序的考题,涉及到函数调用的先后顺序及运算符号的优先级等问题。下面我展开给你讲。 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.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 06782312
    一篇非常经典的LEACH协议改进文献,值得大家学习,在此与大家共享。(It is a very useful book that about LEACH protocol! You can study it and get you want.thank you!)
    2014-10-02 22:28:53下载
    积分:1
  • phasespace
    matlab编程,关于相位同步的实现范例。(matlab programming examples on phase synchronization.)
    2016-03-30 16:11:58下载
    积分:1
  • 79419104matlab
    基于MATLAB的数字水印程序,我不懂大家下着看吧(MATLAB-based digital watermarking process, I do not know how we look forward to the next)
    2009-05-24 09:42:51下载
    积分:1
  • Accelerating_Matlab_with_CUDA
    Nivada之CUDA,加速Matlab运算的文档资料。(Nivada of CUDA, speed up the Matlab computing documentation.)
    2009-12-23 10:20:18下载
    积分:1
  • zhuanhuan
    矩阵转换四元数代码 欧拉角转换四元数代码 四元数转换到矩阵代码(The quaternion matrix transformation code Euler angles conversion quaternion code converts quaternion to a matrix code)
    2012-09-06 10:12:12下载
    积分:1
  • millimeter-wave
    子波高分辨谱估计方法及其在毫米波雷达目标一维距离成像中的应用(Wavelet resolution spectral estimation method and its application in the millimeter-wave radar target from imaging)
    2013-12-25 18:51:41下载
    积分:1
  • Foundational-Approach-to-C_MATLAB
    Springer - Programming for Engineers - Foundational Approach to Learning C and MATLAB (Bradley 2011)(Springer- Programming for Engineers- Foundational Approach to Learning C and MATLAB (Bradley 2011))
    2013-01-23 03:46:46下载
    积分:1
  • Development_of_location-aware_applications
    位置感知应用程序市场 位置估算技术 其它S60 平台运行时中的位置API 使您的应用程序感知位置时需要考虑的因素 协助测试的开发工具。(Location-aware applications market position estimation techniques other S60 platform run-time the position of the API to your application-aware location factors to be considered to help test the development tools.)
    2010-08-31 13:57:39下载
    积分:1
  • call1
    Persian calender hijri 1392 mfile
    2014-02-14 00:28:02下载
    积分:1
  • nosise-trait-
    说明:  这是一个AWGN信道下,编译码仿真的C程序。本人已经用它产生数据绘制折线图!包含编码,译码,信道模拟,误码率计算 …… ,程序结构清晰,不复杂,适合与初学者来了解,基本通信流程!(This is an AWGN channel, the decoding simulation C program. I' ve used it to generate data to draw a line chart! Including encoding, decoding, channel simulation, bit error rate ... ..., the program structure clear, not complicated, for with the beginners to understand, the basic communication process!)
    2011-02-25 14:11:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载