登录
首页 » Visual C++ » 5

5

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

  • HOTQ1
    一个非常红的画图程序,非常有意思,再此上传下(A very red paint program, very interesting, upload it again next)
    2011-10-04 09:52:14下载
    积分:1
  • Image-evaluation-
    Image evaluation (mean, clarity, information entropy, standard deviation)
    2013-11-19 14:51:19下载
    积分:1
  • PE_Caculation
    matlab计算排列熵的程序,可以定量分析混沌或噪声序列的复杂度(a program that is capable of computing the permatation entropy of a time series noise or chaos waveform.)
    2017-05-03 07:22:56下载
    积分:1
  • p0802
    说明:  \matlab编写的车牌定位的程序,两个.m文件(\ Matlab written procedures for license plate location, 2. M file)
    2010-04-29 22:21:37下载
    积分:1
  • fenchan
    自己写的matlab小程序,用于解线性方程的根。可以参考下(Their own small programs written in matlab for solving linear equations of the root. Can refer to)
    2011-09-27 10:16:16下载
    积分:1
  • blobtrack
    opencv自带的跟踪框架程序,方便开发者开发出能够自动检测前景、目标跟踪的算法程序(Opencv own tracking framework application, convenient and developers to develop to be able to automatically detect prospects, the algorithm of target tracking application )
    2014-12-24 15:43:27下载
    积分:1
  • 1
    说明:  该程序可以建立一个链表,然后随机的插入节点(The program can build a linked list, and then randomly insert the node)
    2009-11-25 10:18:16下载
    积分:1
  • Regexp__ActiveX
    Regexp string pattern parser cla(Regexp string pattern parser class)
    2014-09-22 08:49:21下载
    积分:1
  • OSGEarthdm0828
    一个完整的osgearth程序,飞机在空中飞行,并用线条标出飞机移动的轨迹,效果见1.jpg.osgearth需要事先完成安装配置等工作(A complete osgearth procedures, aircraft flying in the air, and marked with lines of track aircraft movement, the effect see 1.jpg.osgearth requires prior completion of the installation configuration, etc.)
    2014-02-05 19:31:56下载
    积分:1
  • Simple-word-Class
    简单的封装了对word的操作 使用 CComVariant vOpt(Simple word Class)
    2014-09-11 11:50:33下载
    积分:1
  • 696518资源总数
  • 105714会员总数
  • 27今日下载