1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <stdint.h>
4 #include <string.h>
5
6 struct SomeData
7 {
8 int x;
9 };
10
11 struct SomeOtherData
12 {
13 char strarr[32];
14 char *strptr;
15 int intarr[5];
16 float flarr[7];
17
SomeOtherDataSomeOtherData18 SomeOtherData()
19 {
20 strcpy(strarr,"Nested Hello world!");
21 strptr = new char[128];
22 strcpy(strptr,"Nested Hello world!");
23 intarr[0] = 9;
24 intarr[1] = 8;
25 intarr[2] = 7;
26 intarr[3] = 6;
27 intarr[4] = 5;
28
29 flarr[0] = 25.5;
30 flarr[1] = 25.25;
31 flarr[2] = 25.125;
32 flarr[3] = 26.75;
33 flarr[4] = 27.375;
34 flarr[5] = 27.5;
35 flarr[6] = 26.125;
36 }
37 };
38
main(int argc,const char * argv[])39 int main (int argc, const char * argv[])
40 {
41 char strarr[32] = "Hello world!";
42 char *strptr = NULL;
43 strptr = "Hello world!";
44 int intarr[5] = {1,1,2,3,5};
45 float flarr[7] = {78.5,77.25,78.0,76.125,76.75,76.875,77.0};
46
47 SomeData data;
48
49 SomeOtherData other;
50
51 float* flptr = flarr;
52 int* intptr = intarr;
53
54 return 0; // Set break point at this line.
55
56 }
57