Directory Listing | |
---|---|
operator_overload
|
|
stack_non_templated
|
|
stack_templated
|
|
index_stuff.cpp
|
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <bits/stdc++.h>
using namespace std;
int main() {
int *v = new int[10];
for (int i = 0; i < 10; i++)
v[i] = i;
//These print out the same thing
cout << v[9] << endl;
cout << *(v + 9) << endl;
}