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
What is mvc in c#?
Is string a primitive data type in c#?
What is the difference between CONST and READONLY?
What is anonymous methods in c#?
What is datatable and dataset in c#?
Where do we set the min and max pool size for connection pooling?
What do you mean by default constructor?
What is the difference between new and override in c#?
What is c# entity framework?
What is jit? What are the different types of jit?
How big is a float?
How does substring work in c#?
Why do we still see so much non-oo code written in c# today?
What is deferred execution?
What is the adv of using System.Text.StringBuilder over System.String?