_popen与popen的区别

wangw89 2011-03-16 10:55:16
如题所示,_lopen,lopen之间还有有什么区别啊,前面加一个下划线有什么作用?
...全文
269 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2011-03-16
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 wangw89 的回复:]
还有,在程序中的“0L”代表多大的数值?
[/Quote]
C Integer Constants
An “integer constant” is a decimal (base 10), octal (base 8), or hexadecimal (base 16) number that represents an integral value. Use integer constants to represent integer values that cannot be changed.

Syntax

integer-constant :

decimal-constant integer-suffix opt
octal-constant integer-suffix opt
hexadecimal-constant integer-suffix opt

decimal-constant :

nonzero-digit
decimal-constant digit

octal-constant :

0
octal-constant octal-digit

hexadecimal-constant :

0x hexadecimal-digit
0X hexadecimal-digit
hexadecimal-constant hexadecimal-digit

nonzero-digit : one of

1 2 3 4 5 6 7 8 9

octal-digit : one of

0 1 2 3 4 5 6 7

hexadecimal-digit : one of

0 1 2 3 4 5 6 7 8 9
a b c d e f
A B C D E F

integer-suffix :

unsigned-suffix long-suffix opt
long-suffix unsigned-suffix opt

unsigned-suffix : one of

u U

long-suffix : one of

l L

64-bit integer-suffix :

i64

Integer constants are positive unless they are preceded by a minus sign (–). The minus sign is interpreted as the unary arithmetic negation operator. (See Unary Arithmetic Operators in Chapter 4 for information about this operator.)

If an integer constant begins with the letters 0x or 0X, it is hexadecimal. If it begins with the digit 0, it is octal. Otherwise, it is assumed to be decimal.

The following lines are equivalent:

0x1C /* = Hexadecimal representation for decimal 28 */
034 /* = Octal representation for decimal 28 */

No white-space characters can separate the digits of an integer constant. These examples show valid decimal, octal, and hexadecimal constants.

/* Decimal Constants */
10
132
32179

/* Octal Constants */
012
0204
076663

/* Hexadecimal Constants */
0xa or 0xA
0x84
0x7dB3 or 0X7DB3

2011-03-16
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 wangw89 的回复:]
还有,在程序中的“0L”代表多大的数值?
[/Quote]
类型为 long,值是 0。
wangw89 2011-03-16
  • 打赏
  • 举报
回复
还有,在程序中的“0L”代表多大的数值?
2011-03-16
  • 打赏
  • 举报
回复
是在用 MinGW 么?
记得这是从前 WinNT 试图实现 POSIX 导致的历史遗留问题……

69,382

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧