WAP to display addition of 2 numbers using function using call by value concept.


Comments

  1. #include
    void shashi(int a,int b);
    void main()
    {
    int x=100,y=45;
    shashi(x,y);
    } void shashi(int a,int b)
    {
    int z;
    z=a+b;
    printf("%d",z);
    }

    ReplyDelete
  2. #include
    void shashi(int a,int b);
    void main()
    {
    int x=100,y=45;
    shashi(x,y);
    } void shashi(int a,int b)
    {
    int z;
    z=a+b;
    printf("%d",z);
    }

    ReplyDelete
  3. #include
    void p(int a,int b);
    void main()
    {
    int x=100,y=45;
    p(x,y);
    } void p(int a,int b)
    {
    int q;
    q=a+b;
    printf("%d",q);
    }

    ReplyDelete
  4. #include
    void p(int a,int b);
    void main()
    {
    int x=100,y=45;
    p(x,y);
    } void p(int a,int b)
    {
    int q;
    q=a+b;
    printf("%d",q);
    }

    ReplyDelete
  5. #include
    void p(int a,int b);
    void main()
    {
    int x=100,y=45;
    p(x,y);
    } void p(int a,int b)
    {
    int q;
    q=a+b;
    printf("%d",q);
    }

    ReplyDelete

Post a Comment