Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

CSC112 Spring 2016 Examples

2370 views
1
#include <iostream>
2
3
using namespace std;
4
5
int main() {
6
int *ptr;
7
int p;
8
9
cin >> p;
10
ptr = (int*) p;
11
cout << ptr << endl;
12
13
*ptr = 9;
14
15
cout << *ptr << endl;
16
}
17
18