Skip to content

Instantly share code, notes, and snippets.

@LoadDragon0000000000
Last active December 2, 2019 06:32
Show Gist options
  • Save LoadDragon0000000000/be3953e69e1ad0a74ea47e07b6e31d5f to your computer and use it in GitHub Desktop.
Save LoadDragon0000000000/be3953e69e1ad0a74ea47e07b6e31d5f to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
int number = 100; // 実際に扱うデータ
int* numberP = &number; // ポインタ変数にnumberのアドレスを代入
printf("%d \n", numberP); // numberのアドレスを表示
printf("%d \n", *numberP); // numberの中身を表示
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment