登录
首页 » Visual C++ » 5

5

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

  • fftshift
    主要是用c语言实现matlab中的fftshift函数的,(Mainly used c language matlab in fftshift function,)
    2013-09-22 14:57:46下载
    积分:1
  • main
    求二维点对问题,但是没有实现不知道怎么做?(the distans of some points )
    2009-11-26 15:22:28下载
    积分:1
  • 15883851SCREEN_LEIDA
    A very useful display covering important aspects of RADAR
    2009-12-27 22:57:29下载
    积分:1
  • matlab-signal-processing
    一本关于matlab信号处理很好的教程,书中涵盖了信号处理所能用的所有程序(A good tutorial on matlab signal processing, the book covers all the signal processing program that can be used)
    2013-11-27 21:29:53下载
    积分:1
  • bilidaoyinfa
    比例导引法的几个matlab程序,根据绝对弹道进行编程设计(Proportional navigation law matlab program, according to the absolute ballistic Programming)
    2013-05-18 15:16:35下载
    积分:1
  • 667-exe
    darkeden 6.67 ver exe file!!
    2014-01-15 15:20:52下载
    积分:1
  • WIMAX
    学习wimax,尤其针对ip技术,适合初学者(Learning wimax)
    2010-03-15 23:21:04下载
    积分:1
  • tsu_izv_Estestven_nauki_2009(3)
    paper for research science
    2013-09-15 18:15:26下载
    积分:1
  • dissertationlsthesudyofGaborwavel
    本文 主 要 研究的是Gab。:小波神经网络算法及其在灰度图像目标识别 中的应用。研究涉及神经网络理论、小波分析理论和小波神经网络理论及其 它们在目标识别中的应用技术。(This paper is Gab. : Wavelet neural network algorithm and its gray-scale image recognition applications. Research involving neural network theory, wavelet analysis theory and wavelet neural network theory and their recognition in the target application technology.)
    2008-07-19 17:49:32下载
    积分:1
  • MusicPlay
    不用音乐播放控件,使用别的方法播放音乐。功能不全。(Do not have music player controls, the use of other means to play music. Insufficiency.)
    2010-02-27 16:30:07下载
    积分:1
  • 696518资源总数
  • 105383会员总数
  • 1今日下载