🟢 Վարժություն 4
Ի՞նչ կտպվի էկրանին։
#include <iostream>
int main() {
int a = 5;
int c = 10;
int* p = &c;
*p = a;
std::cout << a << " " << c << " " << *p;
}
#include <iostream>
int main() {
int a = 5;
int c = 10;
int* p = &c;
*p = a;
std::cout << a << " " << c << " " << *p;
}