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;
	}
}

This post was flagged by the community and is temporarily hidden.

1 Like

chi tiết hơn 1 chút đc không bạn

This post was flagged by the community and is temporarily hidden.

2 Likes
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?