answersLogoWhite

0

How many bytes are in a decimal variable?

Updated: 8/21/2019
User Avatar

Wiki User

9y ago

Best Answer

It depends on the language. In C/C++, decimal values are specified using float, double or long double types. A float is a single precision floating point value that is typically 32-bits in length, however the actual length is implementation dependant. A double is always at least as long as a float while a long double is always at least as long as a double. To determine the actual length at compile time, we use the sizeof() operator.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many bytes are in a decimal variable?
Write your answer...
Submit
Still have questions?
magnify glass
imp