0
Can we print pseudo address of integer or double variable?
2 Answers
+ 2
Not sure what he means Zen, but your code is C++. I believe his question is about Java.
0
What do you mean by "pseudo address"? Simply the address?
#include <iostream>
using namespace std;
int main() {
int n;
double d;
cout << hex << &n << endl;
cout << hex << &d << endl;
return 0;
}