Difference between ByVal and ByRef?

Answer Posted / bhaskar

ByVal means only the value is passed to the calling function
but.. modifications will not reflect the original value..

ByRef means the address where the value stored is passes to
the calling function so the modifications made are reflected
to the original value..

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is console readkey in vb net?

846


Are value types sealed?

711


i want the csharp questions&answeres

1685


What is assembly c#?

644


What is .net console?

735


How do you concatenate in c#?

660


What is default value of bool in c#?

698


What is cookies c#?

668


What is toint32 c#?

811


What is the difference between Object and class adapters?

705


What is callback delegate in c#?

628


What are collection classes?

667


What is the use of GC.KeepAlive Method?

895


When Should You Call The Garbage Collector In .net?

763


How many types of polymorphism are there?

703