Memory allocation of integers and floats