登录
首页 » Visual C++ » 5

5

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

  • rs54
    matlab rough set 粗糙集代码 matlab实现(this is a rar for rough set using matlab )
    2012-09-12 15:17:40下载
    积分:1
  • shannonsource2
    信息论与编码中,对香农信源编码定理的仿真,验证了香农编码定理的可行性。(information theory and coding, right Shannon source coding theorem simulation, verification of the Shannon coding theorem.)
    2007-05-20 10:59:53下载
    积分:1
  • GTS400-APP-V2a
    固高控制卡程序,点到点运动,双轴插补,测试程序(GuGao Control Card Codes)
    2014-11-22 11:18:23下载
    积分: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
  • VBdiaoyong(MATlab)
    详细介绍VB调用MATLAB的几种方法 里面有具体方案(details call VB MATLAB several methods with a specific program)
    2007-05-22 22:27:06下载
    积分:1
  • ga_matlab
    遗传算法的详细仿真程序(matlab),算法详细介绍了遗传算法的功能和主要实现原理。难得的源码程序。(Genetic algorithms detailed simulation program (matlab), algorithm described in detail the function of genetic algorithm and the main achievement of the principle. Rare source procedures.)
    2007-12-13 10:43:23下载
    积分:1
  • codestatics_shujujiegou
    统计代码行、注释行、空行、同时统计函数个数和行数,将代码、注释和空行进行风格评分 (Statistical lines of code, comment lines, blank lines, while the number of statistical functions and the number of rows, the code, comments and blank lines carry style ratings)
    2013-12-14 09:50:56下载
    积分:1
  • Subclust
    减聚类的类代码,可以直接使用获得类中心,类数目(Clustering by class code, you can directly use a type of center, type the number of)
    2008-04-08 10:56:52下载
    积分:1
  • ListenAndTell
    Simple Math games foe blinds peoples
    2015-02-26 03:21:45下载
    积分:1
  • a
    说明:  用遗传算法解决旅行商问题(附源代码),遗传算法其实是一种求函数极值的随机搜索算法。(Solving the traveling salesman problem using genetic algorithms (with source code), genetic algorithm is a kind of extreme demand function of random search algorithm.)
    2011-05-11 17:43:08下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载