-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexplore.cpp
More file actions
39 lines (28 loc) · 746 Bytes
/
explore.cpp
File metadata and controls
39 lines (28 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include<bits/stdc++.h>
using namespace std;
int main() {
// char * buff = new char[8];
// cout << sizeof buff << endl;
// memset(buff, 'a', 8);
// cout << buff << endl;
// char ** ptrbuff = &buff;
// cout << (*ptrbuff) << endl;
// delete[] buff;
// int val = 5;
// void * ptr = &val;
// long long * a = (long long *)ptr;
// cout << (*a) << endl;
// int ref = val;
// int ref2 = val;
// cout << &ref << endl;
// cout << &val << endl;
// cout << &ref2 << endl;
// cout << &ptr << endl;
int a[8] = {0};
int * ptr = a;
*((char * ) ptr + 12) = 6;
for(auto b: a) cout << b << endl;
array<int, 5> t;
t[3] = 0;
cout << t.size() << endl;
}