what is reference parameter?
what is out parameters?
what is difference these two?

Answer Posted / vijaysaxena

out -doesnot keep initial value or assigned value.
ref-does
void f1(out int t){
t+=100 //give error becs t has no value --true for ref
t=100 //possible
}

Is This Answer Correct ?    6 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mvc in c#?

461


Is string a primitive data type in c#?

502


What is the difference between CONST and READONLY?

573


What is anonymous methods in c#?

554


What is datatable and dataset in c#?

481






Where do we set the min and max pool size for connection pooling?

522


What do you mean by default constructor?

607


What is the difference between new and override in c#?

556


What is c# entity framework?

494


What is jit? What are the different types of jit?

568


How big is a float?

501


How does substring work in c#?

478


Why do we still see so much non-oo code written in c# today?

488


What is deferred execution?

481


What is the adv of using System.Text.StringBuilder over System.String?

534