Зачем вам нужно приведение в стиле C для следующего?
int* ptr = static_cast(0xff); // ошибка: недопустимый static_cast из типа 'int' // чтобы ввести 'int*' int* ptr = (int*) 0xff; // хорошо.
Зачем вам нужно приведение в стиле C для следующего? int* ptr = static_cast(0xff); // ошибка: недопустимый static_cast из типа 'int' // чтобы ввести 'int*' int* ptr = (int*) 0xff; // хорошо.
Каковы различия между memcpy и присвоением элемента массива при сохранении указателя (8 байт) в целочисленном (4 байта) массиве?
Например, у меня есть массив из 32 целые числа ( arr ), и я хочу использовать размер памяти последних двух целых чисел (...
I have two classes a Parent class and a Child class (inheriting from the Parent class) I would like to know if it is possible to cast/transform a Child** to a Parent** with reinterpret_cast or something else? Or such thing is not possible
I have two classes a Parent class and a Child class (inheriting from the Parent class) I would like to know if it is possible to cast/transform a Child** to a Parent** with reinterpret_cast or something else?
Or such thing is not possible
Below is a...
I have two classes: a Parent class and a Child class (inheriting from the Parent class). I would like to know if it is possible to cast/transform a Child** to a Parent** with reinterpret_cast or something else. Is such a thing possible?
Below is a...