登录
首页 » Visual C++ » 5

5

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

  • gui
    matlab中使用GUI编写的一个数值插值运算来拟合需要的曲线(matlab GUI written in a numerical interpolation to fit the curve of the need )
    2012-02-11 20:23:50下载
    积分:1
  • Matlab2010
    讲述MATLAB的使用教程,由浅入深讲解详细(About the use of MATLAB tutorial, progressive approach to explain in detail)
    2013-05-09 15:45:01下载
    积分:1
  • fd1d
    电磁场仿真 使用时域有限差分方法 用c和matlab混合编程(Electromagnetic simulation using the FDTD method for hybrid programming with c and matlab)
    2011-05-12 01:12:28下载
    积分:1
  • C++Primer3rdEdition
    c++priemer第三版,中文完美翻译,超好,希望对大家有用(c++ priemer third edition, Chinese perfect translation, super good, I hope useful for everyone)
    2007-08-30 08:31:48下载
    积分:1
  • qpsk
    This is qpsk ber curve simulation.
    2011-05-26 18:37:33下载
    积分:1
  • Untitled
    正向云发生器及其代码,matlab描述.....(cloud creator of forward and the code of that,discribed by matlab)
    2015-01-04 16:21:48下载
    积分:1
  • Quick-Jack
    audio jack communication
    2014-11-05 10:28:39下载
    积分:1
  • win32windowwrapperclass_src
    非常帅气的window32 窗口类源码,可以此为基础做进一步的开发。(A Simple Win32 Window Wrapper Class。http://www.codeproject.com/win32/win32windowwrapperclass.asp)
    2014-02-04 09:54:40下载
    积分:1
  • Binary-coding
    二进制编码连续函数遗传算法二进制编码连续函数遗传算法二进制编码连续函数遗传算法(Binary coding genetic algorithm continuous functions)
    2011-09-16 16:20:53下载
    积分:1
  • DOA-estimation-
    宽带相干信源DOA估计及其阵列校正方法 (Broadband DOA estimation of coherent sources and array calibration method)
    2013-12-12 13:24:25下载
    积分:1
  • 696516资源总数
  • 106459会员总数
  • 0今日下载