a.cpp

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
#include <memory>
using namespace std;

class Grid
{
public:
    int n;
};

int main()
{
    Grid g;
    if (&g == nullptr)
    {
        cout << "g == nullptr" << endl;
    }
    return 0;
}
Back to assignments