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

Scope Query

Discussion in 'C++' started by forumuser11, Jun 28, 2010.

  1. forumuser11

    forumuser11 New Member

    Joined:
    Jun 28, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    class addition
    {
    int a;int b;
    public:
    addition +(addition &x)
    {

    return new addition(a+x.a,b+x.b);
    //Is this addition object inside fun scope or live till the program is live
    }


    }

    //Is this addition object inside fun scope or live till the program is live?
     

Share This Page