Код: Выделить всё
int *a = new int[16];
Содержит ли адрес всего массива или только первый элемент в массив?
По сути, у меня есть этот код:
Код: Выделить всё
struct student {
string name;
int age;
};
int num_students = get_number_of_students();
struct student *students = new student[num_students];
Подробнее здесь: https://stackoverflow.com/questions/738 ... -the-addre
Мобильная версия