Is it true that:
int* p = new int;
and
int* p1 = new int[5]();
in case of p1 will additional information be saved?
Yes, may be.
I recommend you read the following elements from C ++ - faq:
Corresponding quote extracted from the first link:
The runtime system stores the number of objects, n, where it is possible to obtain, if you only know the pointer, s. There are two popular methods that do this. [...]n Fred.p n
The runtime system stores the number of objects, n, where it is possible to obtain, if you only know the pointer, s. There are two popular methods that do this. [...]
++ - FAQ .
Source: https://habr.com/ru/post/1779826/More articles:How to capture custom text event in Firefox - javascriptПолучение ключа-модификатора, нажатого в канале CGEvent - eventsCorrect way to add robots.txt file and hide it? - authenticationDefine Derivation Type from Generic Type - genericsиспользование typedef при объявлении структур в С++ - c++What are some good examples of open source Ruby projects that make good use of Cucumber and RSpec? - ruby | fooobar.comIs there an attempt to develop a file system with automatic file changes? - gitHow can we activate a WPF trigger in XAML when performing a drag and drop operation? - triggersGridview rowdatabound event in winforms? - asp.netКод таймера не работает - javaAll Articles