登录
首页 » Visual C++ » 5

5

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

  • Canon
    用Matlab程序, 播放世界名曲卡农 播放世界名曲卡农播放世界名曲卡农 (Matlab play world music canon)
    2013-08-13 21:41:04下载
    积分:1
  • MSequence
    白噪声是工程中常用到的参考信号,程序通过白噪声的计算方法,可以得出2至7阶的白噪声序列,值得参考(White noise is commonly used to project the reference signal, the program is calculated through the white noise, can be drawn from 2 to 7 bands of white noise sequence)
    2010-07-19 12:48:37下载
    积分:1
  • Monkey
    猴群算法 ,不知道怎么转换成matlab下的,所以如果大家谁知道的话,可以告诉我一下(Monkeys algorithm, do not know how to convert matlab under, so if everyone who knows, you can tell me)
    2007-08-28 09:13:20下载
    积分:1
  • wind_power_in_power_systems
    研究风电接入对电力系统影响的经典书籍,适用于相关专业人士(classical text book to learn about winder power and its affect on power system)
    2012-01-19 23:36:37下载
    积分:1
  • phonebook
    基于window 环境下的电话本程序 (Window environment based on phone book program)
    2010-05-24 22:21:45下载
    积分:1
  • MATLAB-ABC
    MATLAB语言 有关蜂群算法的车间调度问题。源代码是比较准确的。(Shop scheduling problems related to bee colony algorithm MATLAB language. The source code is more accurate.)
    2015-04-22 09:57:21下载
    积分:1
  • traffic-vcPP
    Four versions of the simulation is available. tsim.cpp - Prints visual representation of the simulation tsimd.cpp - Prints Density versus output flow rate and average velocity tsiml.cpp - Prints Lane Change Probabiliy versus Output flow rate and Average velocity
    2014-02-08 09:50:54下载
    积分:1
  • cert
    Windows Digital Sign Tool
    2015-01-26 01:11:56下载
    积分:1
  • AntColonyAlgorithm
    蚁群算法matlab源代码,文件内含详细说明(The program of ant colony algorithm in matlab)
    2012-05-02 13:15:46下载
    积分:1
  • IP
    IP锁定程序实例源码 ip focus program example recourse code ( ip focus program example recourse code )
    2009-02-26 20:49:40下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载