11 lines
214 B
C++
11 lines
214 B
C++
#include<iostream>
|
||
using namespace std;
|
||
int main(){
|
||
|
||
int num=0;
|
||
int * const ptr=# //const指针必须初始化!且const指针的值不能修改
|
||
int * t = #
|
||
*t = 1;
|
||
cout<<*ptr<<endl;
|
||
}
|