Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about new-expression

Read more about new-expression

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - new-expression

How to store a variable or object on desired memory location?

Let's suppose I have an object of a class as shown below: Myclass obj; Now I want to store this object to my desired memory location. How can I do this? Is it possible or not? I have created an array...
test-img

Hassan Ali

c++

dynamic-memory-allocation

new-expression

Votes: 0

Answers: 5

Latest Answer

You can initialize an object to a specific memory location by using the new operator with a memory address like so: MyObject *obj = new(address) MyObject(arguments); Note that when using "new&qu...
test-img

shaked cohen

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved