|
珞珈山水BBS →
电脑网络 →
程序人生 →
单文区文章阅读
|
| 单文区文章阅读 [返回] |
|---|
|
发信人: awded (没有追求了), 信区: Programm 标 题: Re: 可不可以给我解决一下子这个C语言编程 发信站: 珞珈山水BBS站 (Wed Apr 20 01:00:45 2005), 转信 Every char in an expression is converted into an int.…Notice that all f loat's in an expression are converted to double.…Since a function argum ent is an expression, type conversions also take place when arguments ar e passed to functions: in particular, char and short become int, float b ecomes double. 在运算的时候,会默认转换。呵呵 【 在 aftermath (Jason) 的大作中提到: 】 : float+float会转成double吗? ft : 我说的是字长的问题。 -- 青年有发表政见的自由,反动者却怕青年过问国事。---《新华日报》1945年12月9日 ※ 修改:·awded 於 Apr 20 01:10:03 2005 修改本文·[FROM: 222.20.198.*] ※ 来源:·珞珈山水BBS站 bbs.whu.edu.cn·[FROM: 222.20.198.*] |
| [返回单文区目录] |
|
|