?? dudu.c
字號:
#include <stdio.h>
static void display(int i, int *ptr);
int main(void)
{
int x = 5;
int *xptr = &x; //指針賦值
printf("In main():\n");
printf(" x is %d and is stored at %p.\n", x, &x);
printf(" xptr holds %p and points to %d.\n", xptr, *xptr);
display(x, xptr); //調用display函數
return 0;
}
void display(int z, int *zptr)
{
printf("In display():\n");
printf(" z is %d and is stored at %p.\n", z, &z);
printf(" zptr holds %p and points to %d.\n", zptr, *zptr);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -