13 lines
217 B
C++
13 lines
217 B
C++
#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;
|
|
} |