ページ 1 / 1
int* a; と int *a; の違い
Posted: 2012年1月10日(火) 19:34
by sgly
int* a;
と
int *b;
の違いはなんでしょうか? 同じだと思ってたのですが、どうなのでしょう。
Re: int* a; と int *a; の違い
Posted: 2012年1月10日(火) 19:35
by beatle
aとbの差はありますが,型は同じです.
Re: int* a; と int *a; の違い
Posted: 2012年1月10日(火) 21:51
by box
int型へのポインター変数を2個定義するつもりで
と書くと、何かとんでもないことが起きるかもしれません。
Re: int* a; と int *a; の違い
Posted: 2012年1月11日(水) 19:47
by sgly
なるほどっ!