• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download

main(int argc,char const * argv[])1 int main (int argc, char const *argv[])
2 {
3     struct point_tag {
4         int x;
5         int y;
6     };
7 
8     struct rect_tag {
9         struct point_tag bottom_left;
10         struct point_tag top_right;
11     };
12     char char_16[16] = "Hello World\n";
13     char *strings[] = { "Hello", "Hola", "Bonjour", "Guten Tag" };
14     char char_matrix[3][3] = {{'a', 'b', 'c' }, {'d', 'e', 'f' }, {'g', 'h', 'i' }};
15     char char_matrix_matrix[3][2][3] =
16     {   {{'a', 'b', 'c' }, {'d', 'e', 'f' }},
17         {{'A', 'B', 'C' }, {'D', 'E', 'F' }},
18         {{'1', '2', '3' }, {'4', '5', '6' }}};
19     short short_4[4] = { 1,2,3,4 };
20     short short_matrix[1][2] = { {1,2} };
21     unsigned short ushort_4[4] = { 1,2,3,4 };
22     unsigned short ushort_matrix[2][3] = {
23         { 1, 2, 3},
24         {11,22,33}
25     };
26     int int_2[2] = { 1, 2 };
27     unsigned int uint_2[2] = { 1, 2 };
28     long long_6[6] = { 1, 2, 3, 4, 5, 6 };
29     unsigned long ulong_6[6] = { 1, 2, 3, 4, 5, 6 };
30     struct point_tag points_2[2] = {
31         {1,2},
32         {3,4}
33     };
34     struct point_tag points_2_4_matrix[2][4] = { // Set break point at this line.
35         {{ 1, 2}, { 3, 4}, { 5, 6}, { 7, 8}},
36         {{11,22}, {33,44}, {55,66}, {77,88}}
37     };
38     struct rect_tag rects_2[2] = {
39         {{1,2}, {3,4}},
40         {{5,6}, {7,8}}
41     };
42     return 0;
43 }
44