How to determine Number of Bytes occupied by a Array in Swift | SoloLearn: Learn to code for FREE!

0

How to determine Number of Bytes occupied by a Array in Swift

var a=[1,2,3] var b=MemoryLayout.size(ofValue:a) print(b) var c:[Int]=Array() var d=MemoryLayout.size(ofValue:c) print(d)

3/7/2018 5:40:50 AM

sai kumar

0 Answers

New Answer