アドレ演算子、間接演算子を用いて、変数がどんなアドレスに割り付けられているか、次のプログラムで調べてみよ。
10 ******** 10
3.14 ******** 3.14
#include<iostream> using namespace std; void main(){ int x=10; double y=3.14; cout << x << " " << &x << " " << *(&x) << "\n"; cout << y << " " << &y << " " << *(&y) << "\n"; return 0; }
10 ******** 10
3.14 ******** 3.14
このページへのコメント
XdQGC4 wow, awesome article.Really looking forward to read more. Want more.
YlY8nX Major thanks for the blog article.Really thank you!