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 does args mean in c#?
What is the difference between selection and projection?
If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?
What is definition in c#?
what is IEquatable
What is difference between comparable and comparator?
What is class method c#?
What is the base class in .net from which all the classes are derived from?
For read-only operation which property you have to designated?
Is system a class in c#?
Give examples for reference types?
What is concrete class in c#?
Explain what are three test cases you should go through in unit testing?
Differentiate between response.expires and response.expiresabsolute?
What is the difference between ienumerable and enumerator?