登录
首页 » Visual C++ » 5

5

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

  • qjyz
    全局阈值程序,用于matlab中图像分割,能够对比强烈的图片进行较好的分割。(Global threshold program, used in matlab image segmentation, can be used to better segmentation contrast images. )
    2013-11-06 09:14:50下载
    积分:1
  • panel
    空间计量经济学中空间面板模型的matlab实现程序(Space panel model of spatial econometrics matlab program)
    2013-04-17 16:17:01下载
    积分:1
  • HomeRes
    家庭理财统计!可以在一定的时间一定的消费类型消费人员金额等等的统计!(Family financial management and Statistics! At a certain time a certain amount of the consumption type of consumption, personnel statistics, etc.!)
    2010-01-16 22:24:58下载
    积分:1
  • fftw-3.3.4-dll32
    FFTW 32位FFTW调用算法库,MATLAB可以调用(FFTW 32BIT LIBRARY)
    2015-01-11 14:53:49下载
    积分:1
  • sapso
    模拟退火粒子群算法代码 matlab版本 供大家参考(Simulated annealing particle swarm algorithm code)
    2012-11-12 21:43:43下载
    积分:1
  • FDTD2D
    一个FDTD二维的经典程序,非常不错,适合初学者使用。(A classic two-dimensional FDTD program, very good, suitable for beginners.)
    2011-01-23 11:29:28下载
    积分:1
  • 23
    说明:  用于实现方块编码的代码,实现图象的编码,C++代码(Coding for the realization of the code box, realize the image encoding, C++ Code)
    2007-09-10 13:11:52下载
    积分:1
  • Moments-simulation
    基于矩量法仿真的笼形天线宽带化设计 (Method of Moments simulation cage antenna design is based on broadband)
    2013-11-24 10:15:51下载
    积分:1
  • assitant
    编制一个统计特定单词在文本串中出现的次数和位置的程序(The preparation of a statistical specific words in the text string appear in the number and location of the procedure)
    2007-11-29 22:13:38下载
    积分:1
  • lotsofmusic
    这是一个系统的音频素材,可以用在音频编程中(This is a system of audio material, can be used in audio programming)
    2008-04-10 11:10:42下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载