Difference between data types (int8 and float)

You are not declaring an array, you are declaring a pointer to a block of memory that will be allocated at runtime. The compiler only shows the memory use that it can calculate at compile time.