Files
CS-Classes/CS202/Notes/Day2/pointer.cpp
2025-06-17 14:42:22 -07:00

9 lines
163 B
C++

#include <iostream>
int main() {
int x;
x = 5;
int *p = &x;
std::cout << "Address of x = " << p << "\n";
std::cout << "*p = " << *p << "\n";
}