Answers for "implicit type 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
0

Implicit conversion casting

class A {};
class B { public: B (A a) {} };

A a;
B b=a;
Posted by: Guest on November-03-2021

C# Answers by Framework

Browse Popular Code Answers by Language