登录
首页 » Visual C++ » 5

5

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

  • HMODELING_BANo
    如何在Simulink中搭建Sigma Delta ADC的的非理想模型MODELING BAND,已通过测试。 (In Simulink to build a Sigma Delta ADC' s non-ideal model MODELING BAND, has been tested.)
    2012-07-20 19:20:47下载
    积分:1
  • Vg101_lecture_of_UM
    matlab 编程基础 C语言入门和C++基础 源自 美国密西根大学(Matlab Programming Fundamentals C language entry and C++ basis from the University of Michigan)
    2012-05-24 19:10:13下载
    积分:1
  • MATLAB_PAF_AND_CODE
    深入浅出MATLAB7.X混合编程的PDF电子书和全书的源代码,MATLAB高级编程和混合编程学习的好例子!(Mixed programming MATLAB7.X easy PDF e-book and the book' s source code, MATLAB programming high-level programming and mixed a good example of learning!)
    2009-05-16 15:29:52下载
    积分:1
  • PVInverter_init
    微型逆变器初始化,简单易学,大家互相分享源码。(Micro-inverter initialization, easy to learn, we share with one another source.)
    2014-12-03 21:06:07下载
    积分:1
  • danjizi-Antenna
    该程序主要是计算在三维空间中的单极子天线的问题,其中包括PML,(The procedure is to calculate the three-dimensional space in the monopole antenna of issues, including PML,)
    2010-09-13 16:43:03下载
    积分:1
  • shiyan
    在MATLAB环境下四个实验,压缩解压以便日后使用(change picture)
    2010-05-14 11:12:50下载
    积分:1
  • AgePSN5750A
    agilent powersupply contorl
    2015-03-10 13:43:21下载
    积分:1
  • guangyihuxiangguan
    求两个信号的时延估计,通过时延估计对声源实现定位(Ask the two signal delay estimation, time delay estimation of sound source by positioning to achieve)
    2010-11-21 09:05:16下载
    积分:1
  • Exam1
    将Matlab下的M文件转换为DLL,在VC中调用.(M under the Matlab files into the DLL, the VC call.)
    2007-08-21 13:15:25下载
    积分:1
  • industrial-strength
    eBook - Industrial Strength C++ - Visual C++ guide
    2014-02-02 13:03:09下载
    积分:1
  • 696518资源总数
  • 105142会员总数
  • 2今日下载