Multiple choice technology programming languages

What is the size for double datatype in c#?

  1. 1 byte

  2. 2 byte

  3. 4 byte

  4. 8 byte

  5. 16 byte

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The double data type in C# is a 64-bit floating-point number that always occupies 8 bytes of memory, regardless of the system architecture. This size provides sufficient precision for most decimal calculations. Other numeric types have different sizes (float is 4 bytes, decimal is 16 bytes).