Monday, July 27, 2009

C++ basic data type?

What basic data type would one most likely use to store the balance of his credit card?





A. integer





B. float





C. boolean





D. char





E. date

C++ basic data type?
Float will be the correct data type to store. as you can store with decimals
Reply:float
Reply:Hello,





B. Float will be useful for this purpose as it can store large amount with decimal use.
Reply:it could be integer or float but i would prefer float


No comments:

Post a Comment