the size of this array ? I mean how many kb or byte ?
Depends on the data type For this int [ ] anarray = { }; it will only take the space for the array pointer since the array is empty. But for int it's 4 Bytes so an array with 4 integers will take up 16 Bytes
Обсуждают сегодня