Answers for "Implicit Conversion and 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

Code answers related to "Implicit Conversion and Casting"

C# Answers by Framework

Browse Popular Code Answers by Language