6. TypeConversion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace typeconversionexample
{
class Program
{
static void Main(string[] args)
{
int a = 4499;
double b = a; // Implicit Type Conversion
int c = (int)b; // Explicit Type Conversion
}
}
}
Comments
Post a Comment