can you run the following program and tell me its output ?


#include <iostream>
using namespace std;
int main() {
int x = 1, y = 2, z = 3;
int *ptr;
ptr = &x;
*ptr = 5;
ptr = &y;
*ptr = 4;
ptr = &z;
*ptr = 2;
cout << x << endl<< y << endl<< z << endl;
return 0;
}