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 205 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!