Hi Guys,
I have been using the malloc function in order to make use of a memory block.. The code is as shown below:
When I try to access location 78282 i.e. corner_image[78282]=60; the compiler returns an error.Code:int * corner_image; corner_image = (int*) malloc (480*640);
Now I only need to store 8 bit images, perhaps it is because type 'int' is 4 bytes wide? What type should I choose so that it becomes 1 byte wide only?
Thanks a lot. best regards,
bouvett