Question from the C++ - Fundamentals test

Write a C++ program that displays a memory address.

Easy

Which statement is true ?

int main() {
    int* x = new int(5);
    cout << x << endl;
    return 0;
}
Author: SamuelStatus: PublishedQuestion passed 271 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!