'commit'
This commit is contained in:
18
TangDou/CSP-J/J1_2022/1_3_0.cpp
Normal file
18
TangDou/CSP-J/J1_2022/1_3_0.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
int main() {
|
||||
int x = 101;
|
||||
int y = 201;
|
||||
int *p = &x;
|
||||
int *q = &y;
|
||||
p = q;
|
||||
printf("%d %d\n", x, y);
|
||||
//输出:101 201
|
||||
|
||||
printf("%d %d", *p, *q);
|
||||
//输出:201 201
|
||||
|
||||
//所以答案:D
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user