| 1 | #include <stdio.h> |
|---|---|
| 2 | |
| 3 | char my_global_char = 'X'; |
| 4 | const char* my_global_str = "abc"; |
| 5 | const char **my_global_str_ptr = &my_global_str; |
| 6 | static int my_static_int = 228; |
| 7 | |
| 8 | int main (int argc, char const *argv[]) |
| 9 | { |
| 10 | printf(format: "global char: %c\n", my_global_char); |
| 11 | |
| 12 | printf(format: "global str: %s\n", my_global_str); |
| 13 | |
| 14 | printf(format: "argc + my_static_int = %d\n", (argc + my_static_int)); |
| 15 | |
| 16 | return 0; |
| 17 | } |
| 18 |
