cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
dynamic allocate memory
dynamic allocate memory
Jan 11, 2016 at 2:46pm UTC
mike9407
(142)
dynamic allocate memory,
we cant access it without using pointer?
Jan 11, 2016 at 2:53pm UTC
TarikNeaj
(2580)
Your question is unclear.
If you want to allocate memory, you will have to either use the
new
operator, or smart pointers. Smart pointers are obviously pointers, and
new
returns a pointer so yes, you're gonna have to use pointers.
Last edited on
Jan 11, 2016 at 2:56pm UTC
Jan 11, 2016 at 3:25pm UTC
mike9407
(142)
why u are the only one who reply me?
Jan 11, 2016 at 3:55pm UTC
AbstractionAnon
(6954)
TarikNeaj
gave you a good answer. Nothing more needs to be said.
Topic archived. No new replies allowed.