What is the Difference between value and reference type?
Answers were Sorted based on User's Feedback
Answer / nithya
value type variable :
If the valuetype variable data is copied to another
variable, its actual data is not effected.
eg., for valuetype variables are
char,boolean,structures,enumerations .
eg.
dim m.n as integer
m=100
n=200
reference type variable:
variable doesnt stores the actual data, instead it has a
pointer . that pointer will points to the actual data
location
eg., for reference type variabls are array,class .
eg.
dim a,b as integer
a=5
assume, a is in the memory locatyion of 1001.
that address value will be stored to the another variable
say b whose address is 1020
| Is This Answer Correct ? | 6 Yes | 9 No |
Explain manifest & metadata in c#.
What is delegates in c# and uses of delegates?
How to use exception handling in stored procedure?
What is the implicit name and type of the parameter that gets passed into the class set method?
Give an example of a directcast.
Is it true that all c# types derive from a common base class?
What is GAC?
Why can?t you specify the accessibility modifier for methods inside the interface?
3 Answers Mind Tree, Siebel Systems,
Give some examples for built in datatypes in c#?
How do I make a dll in c#?
How can we sort an array in c#?
What are the principles of delegation?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)