1. Correct. The function accepts a pointer to pointer, which, when dereferenced, returns the original pointer we want to modify.
2. Wrong. The function creates a copy of the input variable, in this case - a copy of the input pointer, hence the original input pointer is not modified.
3. There are no pointers to references in C++.
4. Correct. The function accepts a reference to original pointer at input, and is able to modify it.
Войдите чтобы поставить Нравится
Войдите чтобы прокомментировать