I have a 64 bit windows operating system. When i try to find the sizeof() a pointer, i always get '4'. Should it not be '8' for a 64 bit system? Is my compiler effecting the output of sizeof() call? If yes, can i change its settings?
Your application is built as a 32-bit application most likely. In VC++, you have to explicitly build the application as a 64-bit application, it doesn't default to it.