CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: LarryChen

Search: Search took 0.03 seconds.

  1. Re: What is the difference to instantiate an integer using new and without new?

    This is quoted from MSDN,
    new operator Used to create objects on the heap and invoke constructors.
    Value-type objects such as structs are created on the stack, while reference-type objects such...
  2. What is the difference to instantiate an integer using new and without new?

    For example,


    int i = 0;

    int i = new int(0);

    Is there any difference? Thanks.
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured