登录
首页 » Visual C++ » 5

5

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

  • zuoye7
    第k小元素(分治法) 给定一个线性序列集,要求求出其中指定的第K小的数的值和位置.如给定n个元素和一个整数i,1≤i≤n,输出这n个元素中第i小元素的值及其位置;(First k small element (divide and conquer) Given a set of linear sequence, where the specified requirements determined the K value and the small number of locations, such as a given n elements and an integer i, 1 ≤ i ≤ n, output this is the n elements of the i-th element value and the position of the small )
    2013-11-16 11:51:31下载
    积分:1
  • 13
    说明:  图象压缩方面的论文pdf格式 可用于毕业设计方面的工作(Image compression pdf format papers for school design work)
    2010-05-26 20:37:18下载
    积分:1
  • momentum
    UDF添加动量源项 fluent仿真分析虚拟螺旋桨(UDF momentum)
    2020-11-18 10:09:39下载
    积分:1
  • Arduino hx711库文件 HX711-master
    Arduino hx711库文件,在编写程序省去很大力气,很好用的头文件,大力推荐(Arduino hx711 library files, eliminating the need to write programs in a lot of effort, a good use of header files, strongly recommended)
    2020-06-25 03:40:02下载
    积分:1
  • Matlab-symbolic-toolkit-introduction
    matlab 工具箱介绍_各函数及算法介绍(matlab toolbox functions and algorithms described _ Introduction of)
    2011-12-01 18:17:57下载
    积分:1
  • left-crusion
    消除左递归,包括自上而下的非递归分析和自上而下的分析(Eliminate left recursion, including non-recursive top-down analysis and top-down analysis)
    2013-11-15 19:47:57下载
    积分:1
  • pierleetime
    时间片轮转法实现处理器调度的程序.^-^(time slice Web Method processor scheduling procedures .^-^)
    2006-12-04 19:34:10下载
    积分:1
  • VCPP-Matlab.m
    5.1 在VC++中调用Matlab引擎 matlabenginetest目录 5.2 VC++中调用Matlab *.m函数编译后的动态链接库 VC++中调用Matlab .m函数编译后的动态链接库目录(failed to translate)
    2011-05-06 13:35:36下载
    积分:1
  • fiber-TE-mode
    利用matlab模拟光纤中TE模的模式分布图。(Using matlab simulation model TE mode fiber distribution.)
    2013-07-30 10:05:34下载
    积分:1
  • itemView
    这是点菜机的服务晨曦 ,还有一个是点菜机的客户机程序,你可以下载(this is a program of serving ,there is another program if you arm interest)
    2009-12-06 20:59:05下载
    积分:1
  • 696516资源总数
  • 106668会员总数
  • 21今日下载