30/09/2018, 23:21
Hỏi: a = new int[5] có ý nghĩa gì trong ví dụ dưới đây?
void cap_phat_bo_nho(int *a)
{
a = new int[5];
for (int i = 0; i < 5; i++)
{
a[i] = i + 1;
//cout << a << " ";
//cout << *a << endl;
}
}
Bài liên quan
This post was flagged by the community and is temporarily hidden.
chi tiết hơn 1 chút đc không bạn
This post was flagged by the community and is temporarily hidden.