pointer.c

来自「c版本的」· C语言 代码 · 共 13 行

C
13
字号
                                         /* Chapter 8 - Program 1 */
main()                             /* illustration of pointer use */
{
int index,*pt1,*pt2;

   index = 39;                             /* any numerical value */
   pt1 = &index;                          /* the address of index */
   pt2 = pt1;
   printf("The value is %d %d %d\n",index,*pt1,*pt2);
   *pt1 = 13;                  /* this changes the value of index */
   printf("The value is %d %d %d\n",index,*pt1,*pt2);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?