CPlusPlusThings/english/basic_content/const/funciton_const/condition3/condition1.cpp
2020-07-18 17:09:29 +08:00

11 lines
132 B
C++

#include<iostream>
using namespace std;
int main(){
const int p = 3;
const int * const ptr = &p;
cout<<*ptr<<endl;
}