I looked through various questions both here and elsewhere, but I still cannot explain the access violation error that I receive. "Access violation entry location 0x00000000" corresponds to a NULL pointer, right? I declared an int pointer, and later try to set the value in this place. Should memory space be allocated when a pointer is declared? Forgive me if this is noobish, but I'm a lot more Java / AS3 guy.
Here is part of my code ...
int* input; char* userInput[1]; int* output; int _tmain(int argc, _TCHAR* argv[]) { while(1) { srand(time(0)); *input = (int)(rand() % 10);
It is broken into the last line.
source share