1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

function

Discussion in 'C' started by gpk kishore, Jul 29, 2011.

  1. gpk kishore

    gpk kishore New Member

    Joined:
    Jun 30, 2011
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    0
    #include<stdio.h>
    void func(int);
    void main()
    {
    int a=3;
    fun(a);
    }
    void fun(int n)
    {
    if(n>0)
    {
    fun(--n);
    printf("%d",n);
    fun(--n);
    }
    }

    sir
    please tell me the output with explanation


    Thanks in advance
     
  2. gpk kishore

    gpk kishore New Member

    Joined:
    Jun 30, 2011
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    0
    Why no one is replying

    please reply
     

Share This Page