- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPointerIntro.cpp
More file actions
Latest commit
22 lines (18 loc) · 436 Bytes
/
Copy pathPointerIntro.cpp
File metadata and controls
22 lines (18 loc) · 436 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//CSC114-651
//Student: Christopher Yonek (700642859)
//Assignment: Print out a snippet that shows the value of a pointer.
//Date: November 2018
#include"pch.h"
#include<iostream>
usingnamespacestd;
intmain()
{
// The memory address operator of a regular variable is &
int fish = 5;
cout << &fish << endl;
int *fishPointer;
fishPointer = &fish;
cout << fishPointer << endl;
_getch();
return0;
}