What is the size for double datatype in c#?
-
1 byte
-
2 byte
-
4 byte
-
8 byte
-
16 byte
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).