mirror of
https://github.com/tiennm99/KTLT.git
synced 2026-06-18 00:47:11 +00:00
19 lines
305 B
C++
19 lines
305 B
C++
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
int n;
|
|
double d;
|
|
int *ptr;
|
|
ptr = &n;
|
|
cout << "ptr = " << ptr << endl;
|
|
*ptr = 0;
|
|
cout << "*ptr = " << *ptr << endl;
|
|
*ptr = 1000;
|
|
cout << "*ptr = " << *ptr << endl;
|
|
// ptr = &d;
|
|
return 0;
|
|
}
|