We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bec64e1 commit 7dc7782Copy full SHA for 7dc7782
1 file changed
section2/test07.cpp
@@ -6,6 +6,20 @@
6
7
#include <iostream>
8
9
+void case1()
10
+{
11
+ using namespace std;
12
+
13
+ //const int MAX_LEN = 1024;
14
+ const volatile int MAX_LEN = 1024;
15
+ const std::string NAME = "metroid";
16
17
+ auto ptr = (int*)(&MAX_LEN);
18
+ *ptr = 2048;
19
+ cout << MAX_LEN << endl;
20
21
+}
22
23
24
constexpr
25
int fib(int n)
@@ -21,6 +35,8 @@ int main()
35
{
36
using namespace std;
37
38
+ case1();
39
40
41
int fib5 = fib(5);
26
42
0 commit comments