Features
If we write some new data to a pointer or a link, then this will also be reflected in the variable to which they point.
Pointers:
123456int a = 2; int *pa = &a; cout << a << endl; *pa = 50; cout << a;
References:
123456int a = 2; int &ra = a; cout << a << endl; ra = 50; cout << a;
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 8
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Suggested prompts:
Запитайте мені питання про цей предмет
Сумаризуйте цей розділ
Покажіть реальні приклади
Awesome!
Completion rate improved to 2.94
Features
Свайпніть щоб показати меню
If we write some new data to a pointer or a link, then this will also be reflected in the variable to which they point.
Pointers:
123456int a = 2; int *pa = &a; cout << a << endl; *pa = 50; cout << a;
References:
123456int a = 2; int &ra = a; cout << a << endl; ra = 50; cout << a;
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 8