#include <iostream>
#include <string>


using namespace std;
int main(){
    int *iPtr = new int [5];//0-4, make a pointer act as an array of ints
    iPtr[2] = 50; // set a location in the pointer the same old array way.
    
    cout << *(iPtr+2) << endl << &iPtr << endl << &iPtr+2;  // Take mem location of iPtr + 2 of sizeof(type) *iPtr
    
    char *ohai = "Ohai Thar, how are you?"; // Using a char pointer as a string
    char fbp[256]; // initializing a char array to 256 characters
    
    strcpy(fbp, ohai); // copying pointer ohai to FBP (filled by pointer)
    cout << endl<< fbp; // cout fbp
return 0;
}
