Code

C# DataTypes

C# is a strongly typed language. This means that every variable must have a declared type. The type of a variable specifies the type of data that it will store and, thus, determines the storage space allocated for the variable in the memory.

string name = "Pirzada";
int age = 35;
bool isMarried = true;
decimal income = 24899.45m;
float hourlyRate = 20.8f;

Run Demo

Tagged in :

Pirzada Rashid

Senior .NET developer with a Master of Science in Information Technology.
Teaching is one of my passions. It gives me great joy to share my knowledge with others, and I look forward to investing more energy into it.

Add Comment

Click here to post a comment

Popular Video

82,490+ Views