Value and Reference Types of C#.Net Interview Questions(5)
1.What are the types of
data types available in C#?
A).In C# we have two
type of datatypes are there.They are:
1. Value Types
2. Reference Types
2. If you define a user
defined data type by using the struct keyword, Is it a a value type or
reference type?
A) Value Type
3. If you define a user
defined data type by using the class keyword, Is it a a value type or reference
type?
A)Reference type
4. Give Some examples for value types?
A)All Predefined data
types i.e Integer,bool,string,Enum,Struct etc…
5. Give examples for
reference types?
A)Class,String,Delegate,
Array, ArrayList,Interface etc…
0 comments:
Post a Comment