- Integral Data Types
- Floating Data Types
- Character Data Types
- Other Data Types
Showing posts with label C# support data types. Show all posts
Showing posts with label C# support data types. Show all posts
Saturday, September 10, 2011
Predefined Data Types
These data types are divided into 4 types.
Labels:
C# data type,
C# support data types,
data type in C#
Difference between in Reference and Value Data Type
- Value Types
- Value types hold the data directly.
- Value types do not have default value.
- Value types will be stored in stack memory at compile time.
- Stack is faster in accessing
- Stack is not accessible to garbage collector. Hence it will not be cleared at runtime.
- Value type passes an exact copy to methods.
- Example: Implicit Data Types, Structures, Enumerations.
- Reference Types
- Reference types do not hold the date directly.
- Reference types have default value.
- Reference types will be stored in heap memory at run-time.
- Heap is slower in accessing.
- Heap is accessible to garbage collector. Hence at run-time heap can be cleared.
- Reference types passes a reference (handle) to methods.
- Example: Classes, Objects, Arrays, Delegates, Interfaces.
Read about Data types
Data Types in C hash dot net
Type specifies the type of the data and the size of the data.
Working with Data Types: Data Type specifies the type of the data and the size of the data.
Working with Data Types: Data Type specifies the type of the data and the size of the data.
C# supports two types of Data Types:
C# supports two types of data or we can say that, we can use two types of data types in C#.Net- Value Type
- Reference Type
DATA TYPES
Subscribe to:
Posts (Atom)
Popular 5 Posts Last 7 days
-
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Marksheet1 { class Program ...
-
// Storage int value1 = 0; int value2 = 0; int total = 0; string operation; // Get first number value1 = GetNumber(); // Get Operation Conso...
-
matrix with row-wise sum #include<stdio.h> #include<conio.h> main() { int a[5][5],m,n,i,j,sum[5]; clrscr(); printf(...
-
main() { int a[][4]={ 5,6,7,8, 1,2,3,4, 2,3,4,5 }; int *p; int (*q)[4]; // q is a point...
-
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Palindrome { class Program ...