Reference to a pointer

What does this program print?

main.cpp
#include <iostream>

void reset(int*& rp) {
    rp = nullptr;
}

int main() {
    int x = 5;
    int* p = &x;
    reset(p);
    std::cout << (p == nullptr) << std::endl;
}

5 of 117 in C++