I am trying to output a simple char
address on the display, but using &
is not working:
#include <iostream>
using namespace std;
typedef int no;
typedef char nose;
typedef void laps;
laps noname(nose &boogers);
no main(no args, nose**LOC[])
{
cout << "Try ";
nose boogers = 't';
noname(boogers);
}
laps noname(nose &boogers)
{
cout << &boogers;
}
I have tried it by removing the ampersand of the parameter of laps, but the &boogers
datum is not working either way because on the console it just shows the "t" character instead of an address.
Am I doing something wrong here?
JSYK: It compiles fine, no warnings at all. I just want to know why I am not getting an address instead of a value.