best answer > Why new operator is used in C++ 2024?- QuesHub | Better Than Quora
  • Why new operator is used in C++ 2024?

    分配 内存 操作

    Questioner:Zoey Adams 2023-05-05 10:26:10
The most authoritative answer in 2024
  • Daniel Kim——Studied at the National University of Singapore, Lives in Singapore.

    When new is used to allocate memory for a C++ class object, the object's constructor is called after the memory is allocated. Use the delete operator to deallocate the memory allocated with the new operator. ... The new operator cannot be used to allocate a function, but it can be used to allocate pointers to functions.read more >>
    +119962023-05-07 10:26:10

About “分配、内存、操作”,people ask:

READ MORE:

QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.

分享到

取消