#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int temp = 300;
cout << "Address of variable temp: " << (unsigned)&temp;
return 0;
}
main.cpp: In function ‘int main()’: main.cpp:17:57: error: cast from ‘int*’ to ‘unsigned int’ loses precision [-fpermissive] cout << "Address of variable temp: " << (unsigned)&temp;