CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
#include <vector>
using namespace std;
int main()
{
/*vector<bool> v = {false,false,true,false};
cout << v[0] << endl;
bool* b = &v[0];*/
vector<int> v1 = {1,2,4,3};
cout << v1[0] << endl;
int* i = &v1[0];
cout << *i;
return 0;
}
OUTPUT
Run