#define KB * (0x1 << 10)
I think it's written to show kilobyte as KB. what is * (star) ??
what is difference with this "#define KB (0x1 << 10)" ??
thanks
Firstly, star (*) sign means a pointer (or reference) to a variable.
Secondly, there is impossible to get the address of const value (0x1 << 10), so calculation of expression *(0x1 << 10) will always cause a compilation error.
Also, probably, the task is incomplete to understand what is asked correctly.