I want to initialize an unsigned char * buffer of length 1500 so that I can store values in it from some other sources.
If you want it on the heap,
unsigned char* buffer = new unsigned char[1500];
if you want it on the stack,
unsigned char buffer[1500];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With