登录
首页 » Visual C++ » 5

5

于 2009-03-15 发布 文件大小:2KB
0 201
下载积分: 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 个回复

  • measure
    计算脑功能网络相关测度,计算脑功能网络相关测度,,edf信号(Calculate the related measure of functional brain networks)
    2013-01-26 09:56:47下载
    积分:1
  • time-frequence-application
    详细讲解信号处理的pdf,里面包含了FFT,小波,希尔伯特-黄变换等内容,是信号处理方面很好的参考资料(Explain in detail the signal processing pdf, which contains the FFT, wavelet, Hilbert- Huang Transform, etc., is a good reference for signal processing, data)
    2011-09-06 16:28:07下载
    积分:1
  • unlinercontrol
    非线性系统鲁棒无模型学习自适应控制论文,内容见附件(Nonlinear systems model-free learning adaptive control study, the content of Annex)
    2010-11-11 01:14:27下载
    积分:1
  • legomindstormsnxt_r2012b_v2_3
    Simulink block library for creating models that run directly on your LEGO MINDSTORMS NXT robot
    2014-11-18 07:32:42下载
    积分:1
  • matlab_VC
    利用VC++6.0开发matlab与VC通信,本人已运行,好用(VC++6.0 developers Matlab and VC communication, I have to run, easy to use)
    2012-10-22 19:14:33下载
    积分:1
  • 2
    说明:  是关于用matlab在单站无源定位中的仿真应用,通过一篇论文来详细说明(Is about using matlab simulation applications in a single station passive location through a paper to detail)
    2014-01-05 17:20:50下载
    积分:1
  • main
    基于MATLAB的内模控制器的简单设计实现,应用于ARM上(Internal model controller based on MATLAB realization of a simple design, is applied on ARM)
    2015-03-11 10:56:27下载
    积分:1
  • SSystemidentiy
    Systemidentificcation,系统辨识 (Systemidentificcation, system identification)
    2012-08-12 20:52:00下载
    积分:1
  • Matcom-and-CPP
    这是关于matcom和C++联合编程的资料,可以实现脱离matlab环境来进行编程(This is joint programming on matcom and C++, the data can be achieved out of the matlab environment for programming)
    2012-08-26 10:07:14下载
    积分:1
  • jck
    Intersection surface drawing.
    2009-12-30 08:59:53下载
    积分:1
  • 696518资源总数
  • 105034会员总数
  • 16今日下载