Quick actions

cmd+k|ctrl+k

Navigation

Languages

mem prac

Snippet info

Language

Cpp

Visibility

public

Author

danielmg17

Created

2019-02-20T21:23:10Z

Updated

2019-09-11T22:34:15Z

#include <iostream>
using namespace std;

int main() {
    int *x = new int[100];
    for(int i = 0; i < 99; i++) {
        x[i] = i;
    }
    cout
        << x << endl
        << x[0] << " " << *x << endl
        << x[1] << " " << *(x+1) << endl
        << x[90] << " " << *(x+90) << " " << x+90;
    delete[] x;
    return 0;
}
INFO