Guys, I have a question related pointer, to be to be more precise about "address-of" and "dereference" operators. I went through C++ tutorial, and it seems to be very clear an easy, but when I try something with Lite-C, it all goes wrong... Why?
Example:
#define PRAGMA_POINTER
void main()
{
int s=7, t;
int *p=&s, *p2, *p3=&t;
p2=&s;
*p3=8;
while(1){
DEBUG_VAR(*p, 10);
DEBUG_VAR(*p2, 30);
DEBUG_VAR(*p3, 50);
wait(1);
}
}
I expect to see 7, 7, 8 on screen, but it seems that it doesn't 'dereference' a shit. In Visual Studio it worked well..
Greets