No a declaring a pointer does not allocate any memory.
How much would it allocate?
You, the programmer should know how much memory to allocate.
You must either use new in C++ or malloc...
Type: Posts; User: jimblumberg
No a declaring a pointer does not allocate any memory.
How much would it allocate?
You, the programmer should know how much memory to allocate.
You must either use new in C++ or malloc...
In the code below you are never allocating any memory for bitmap.
You either need to us new to allocate memory
unsigned char *bitmap; //bitmap array
int i = 0;
...