But this doesnot work with calculating the size of float and other data types.