Answers for "Implicit Casting"

C#
1

Implicit Casting

int myInt = 9;
double myDouble = myInt;       // Automatic casting: int to double

Console.WriteLine(myInt);      // Outputs 9
Console.WriteLine(myDouble);   // Outputs 9
Posted by: Guest on May-31-2021

C# Answers by Framework

Browse Popular Code Answers by Language