是声明还是定义? [英] Is it declaration or defination?
本文介绍了是声明还是定义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
main(){
int x; / *声明或定义?? * /
}
Hi
main() {
int x; /* it declaration or defination??*/
}
推荐答案
venky写道:
venky wrote:
main(){
int x; / *声明或定义?? * /
}
main() {
int x; /* it declaration or defination??*/
}
int x;总是一个定义;
extern int x;可能是声明。
int x; is always a definition;
extern int x; may be a declaration.
venky schrieb:
venky schrieb:
嗨
main(){
Hi
main() {
int main(void){
int main(void) {
int x ; / *声明或定义?? * /
}
int x; /* it declaration or defination??*/
}
http://en.wikipedia.org/wiki/Declara...ter_science%29
自己决定。
-
Thomas
http://en.wikipedia.org/wiki/Declara...ter_science%29
Decide yourself.
--
Thomas
int x; / *是声明* /
int x; /*is a declaration */
这篇关于是声明还是定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文