Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //OUTPUT SHOULD BE nothing ,but it print
- //0, 1, 2, 0,
- //I would like to know why
- #include<stdio.h>
- void fun(int);
- typedef int (*pf) (int, int);
- int proc(pf, int, int);
- int main()
- {
- int a=3;
- fun(a);
- return 0;
- }
- void fun(int n)
- {
- if(n > 0)
- {
- fun(--n);
- printf("%d,", n);
- fun(--n);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement