Quick actions

cmd+k|ctrl+k

Navigation

Languages

memalloc prac

Snippet info

Language

Cpp

Visibility

public

Author

danielmg17

Created

2019-02-17T06:14:37Z

Updated

2019-02-17T06:14:37Z

#include <iostream>
using std::string, std::cout, std::endl;

string *x = new string("Yy");
char *y = new char[10];

int main() {
    y[3] = 'b';
    cout << y[3] << endl << *x << endl;
    delete[] y;
    delete x;
    return 0;
}
INFO