Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # How to compile and run:
- # gcc -pedantic -Wall -Werror c-kr.c -o c-kr
- # ./c-kr
- #include <stdio.h>
- int func0(i) int i; {
- return i;
- }
- int func1() {
- return 5;
- }
- int main(int argc, char** argv) {
- printf("0,0: %d\n", func0());
- printf("0,1: %d\n", func0(1));
- printf("0,2: %d\n", func0(2, 3, 4));
- printf("0,3: %d\n", func0('c', "test", func0, 3));
- printf("0,4: %d\n", func0("test", 'c', func0, 3));
- printf("0,5: %d\n", func0(func0, "test", 'c', 3));
- printf("1,0: %d\n", func1());
- printf("1,1: %d\n", func1(1));
- printf("1,2: %d\n", func1(2, 3, 4));
- printf("1,3: %d\n", func1('c', "test", func1, 3));
- printf("1,4: %d\n", func1("test", 'c', func1, 3));
- printf("1,5: %d\n", func1(func1, "test", 'c', 3));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement