24
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

C言語のポインタについて

Last updated at Posted at 2018-11-09

C言語のポインタについてさくっと確認する用

#include <stdio.h>

int main(void)
{
  int a;
  a = 10;

  int *pa; // int型領域を指し示すアドレスを格納するための変数
  pa = &a; // 変数paに変数aのアドレスを代入

  printf("%d\n", *pa); // 変数paに入っているアドレスが指し示す領域のデータを出力
  return 0;
}

出力

10
24
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?