Fundamentals/Memory Size of Types
← PrevNext →
Given an array length n and an element type ("bool", "int", "long", "float", "double"), return the total bytes the array occupies using bool=1, int=4, long=8, float=4, double=8.