同类型指针赋值

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> int main(void) { int num = 9; int *pInt1 = &num; printf("pInt1 地址的值 %p\n", pInt1); printf("pInt1 指向的值 %d\n", *pInt1); printf("num 的值 %d", num); int *pInt2 = pInt1; // --- 同类型指针赋值 --- *pInt2 = 10; printf("\n-------赋值后-------\n\n"); printf("pInt2 地址的值 %p\n", pInt2); printf("pInt2 指向的值 %d\n\n", *pInt2); printf("pInt1 地址的值 %p\n", pInt1); printf("pInt1 指向的值 %d\n", *pInt1); printf("num 的值 %d", num); }
Editor Settings
Theme
Key bindings
Full width
Lines