Which code segment should you use?

You are developing an application that includes methods named ConvertAmount and TransferFunds.
You need to ensure that the precision and range of the value in the amount variable is not lost when
the TransferFunds() method is called.
Which code segment should you use?

You are developing an application that includes methods named ConvertAmount and TransferFunds.
You need to ensure that the precision and range of the value in the amount variable is not lost when
the TransferFunds() method is called.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
Simply use float for the TransferFunds parameter.
Note:
* The float keyword signifies a simple type that stores 32-bit floating-point values.
* The double keyword signifies a simple type that stores 64-bit floating-point values



Leave a Reply 3

Your email address will not be published. Required fields are marked *


rao

rao

C

Zag

Zag

Is D correct ?

Najlepszy Programista Swiata DAGO

Najlepszy Programista Swiata DAGO

No, C is correct