You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
217 B
13 lines
217 B
7 months ago
|
#include <iostream>
|
||
|
|
||
|
int main() {
|
||
|
int x = 2;
|
||
|
int* y = &x;
|
||
|
|
||
|
std::cout << x << std::endl;
|
||
|
std::cout << &x << std::endl;
|
||
|
std::cout << y << std::endl;
|
||
|
std::cout << *y << std::endl;
|
||
|
|
||
|
return 0;
|
||
|
}
|