登录
首页 » Visual C++ » 5

5

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

  • Minttegdiff-ma
    matlab微积分讲义ppt,包含算法,程序源码等非非常多不错的咚咚,能学习一下 可直接使用。 已通过测试。 (matlab calculus lecture notes ppt, including algorithms, program source code and other non-very good pound, and can learn can be used directly. Has been tested.)
    2012-07-25 22:57:21下载
    积分:1
  • timeclient_src
    The time is calculated and converted to 64-bit in the first and second lines and then converted to local time zone before being converted to a SYSTEMTIME structure. Last of all the system time is set.
    2007-10-16 09:36:28下载
    积分:1
  • MEMS-gyro-error-characteristics
    微小型MEMS陀螺的误差特性研究,对于mems陀螺仪误差建模和补偿方法(Miniature MEMS gyro error characteristics of the MEMS gyroscope error modeling and compensation method)
    2013-04-21 17:02:19下载
    积分:1
  • ex_kaiser
    kaiser窗函数的用法,这是一个资料上的,经过验证了,希望帮得到你。(usage of the kaiser window function, which is an information, after the verification, and hope to help get you.)
    2012-06-15 10:51:40下载
    积分:1
  • aerodynamics-of-wind-turbines
    Denmark Technical University的大牛Hansen,第二版风力机空气动力学。(Denmark Technical University' s Daniel Hansen, the second edition of wind turbine aerodynamics.)
    2013-07-19 09:00:35下载
    积分:1
  • os
    说明:  Programming technique for matlab
    2013-03-04 23:02:31下载
    积分:1
  • MatlabandVC++
    说明:  文章叙述了VC++和matlab之间的接口,是用他们同时开发一个项目的好文章(The article describes the VC++ And the interface between matlab, is to use them to develop a project at the same time a good article)
    2008-12-05 19:05:21下载
    积分:1
  • Autofocus
    介绍自动对焦的文章主要介绍了对焦技术探测技术包括频域分析目标函数目标函数效能验证影像评估效能之因素高斯低通滤波器参数的选取自动对焦技术以及相关实验结果与分析(Introduction Auto focus of the article introduces the focus technology, detection technology including frequency domain analysis, the objective function, the objective function performance verification, image assessment of the effectiveness of the factors, Gaussian low-pass filter parameter selection, auto-focus technology and related experimental results and analysis.)
    2009-11-26 15:49:33下载
    积分:1
  • waveletsunshangfenxi
    计算小波能量谱分析,用于功率谱分析,以及损伤等都可以(Calculating wavelet energy spectrum analysis)
    2013-10-26 09:42:15下载
    积分:1
  • ISODATA
    一个简单的ISODATA聚类算法的cpp,仅供学习(A simple ISODATA clustering algorithm cpp, only to learn)
    2015-01-02 14:13:54下载
    积分:1
  • 696518资源总数
  • 106010会员总数
  • 4今日下载