Pointers CSE 5100 Data Structures and Algorithms Getting the address of a variable You need to use the address operator & #include  void main() { int num;  num…