Bloomberg LP Interview Question
Financial Software DevelopersCountry: United States
Interview Type: Phone Interview
1. An expression with the new operator, first calls function operator new (i.e., this function) with the size of its type specifier as first argument, and if this is successful,
2. It then automatically initializes or constructs the object (if needed).
3. Finally, the expression evaluates as a pointer to the appropriate type.
1. It will allocate the memory in the heap
- Swarupa. August 13, 20132. Invokes the constructor of the object
3. Returns the address points to it.