✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Consider the following code fragment:
int vector[5] = {1, 2, 3, 4, 5}, *pv = vector, value = 3;
for (size_t i=0; i < sizeof(vector)/sizeof(int); ++i) {
*pv++ *= value;
}
If the code fragment doesn't compile, write [for compile-time error]. If the code fragment has undefined behavior at runtime, write [for undefined behavior]. Otherwise, write the the sum of the values in array vector after the code fragment's execution.
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!