O\P= 1 2 1 3 1 2 1 is it correct?
On Fri, Aug 26, 2011 at 12:23 PM, SAMMM <[email protected]> wrote:
> 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);
> }
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.