-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex11.c
42 lines (35 loc) · 802 Bytes
/
ex11.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#import <stdio.h>
int main(int argc, char* argv[])
{
int i = 0;
for (i = 1; i < argc; i++) {
printf("arg %d: %s\n", i, argv[i]);
}
char *regions[] = {
//"Prague",
NULL,
"",
"Central Bohemian Region",
"South Bohemian Region",
"Plzeň Region",
"Karlovy Vary Region",
"Ústí nad Labem Region",
"Liberec Region",
"Hradec Králové Region",
"Pardubice Region",
"Olomouc Region",
"Moravian-Silesian Region",
"South Moravian Region",
"Zlín Region",
"Vysočina Region"
};
int number_of_regions = 14;
for (i =0; i < number_of_regions; i++) {
printf("region %d: %s\n", i, regions[i]);
}
return 0;
}
// 1. What can go into different parts of for loop, try ','
//
// 2. what is NULL
// value is actually 0x0, and all virtual addresses start with 0x100000000