C语言中的符号重载(Expert C Programming笔记)

 

原来一直搞不清楚 C 中static ,extern 在各个地方的含义 今天发现在expert c programming 中的总结算是搞明白了



Symbol

Meaning

static

Inside a function, retains its value between calls.

At the function level, visible only this file.

extern

Applied to a function definition, has global scope ( and is redundant).

Applied to a variable, defined elsewhere.

Void

As the return type of function, doesn’t return a value.

In a pointer declaration, the type of a generic pointer.

In a parameter list, takes no parameters.

*

The multiplication operator.

Applied to a pointer, indirection.

In a declaration, a pointer.

&

Bitwise AND operator.
Address-of operator.

=

==

Assignment operator.

Comparison operator.

<=

<<=

Less-than-or-equal-to operator.

Compound shift-left assignment operator.

 

Less-than operator.

Left delimiter in #include directive.

()

Enclose formal parameters in a function definition.

Make a function call.

Convert (cast) a value to a different type.

Define a macro with arguments.

Enclose the operand of the sizeof operator when it is a typename

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值