1 | #include <stdio.h> |
---|---|
2 | |
3 | char g = 0; |
4 | signed char gs = 0; |
5 | unsigned char gu = 0; |
6 | |
7 | int foo(char c) { return 1; } |
8 | int foo(signed char c) { return 2; } |
9 | int foo(unsigned char c) { return 3; } |
10 | |
11 | int main() { |
12 | char c = 0; |
13 | signed char sc = 0; |
14 | unsigned char uc = 0; |
15 | printf(format: "%d %d %d\n", foo(c), foo(c: sc), foo(c: uc)); |
16 | return 0; // Break here |
17 | } |
18 |