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
Is string mutable in c#?
What is the use of console readkey in c#?
Name the connections does microsoft sql server support?
What is string literal in c#?
Compare and contrast between the System.Array.CopyTo() and Clone()?
What is func c#?
What is difference between array and list in c#?
What is a static class in c#?
What is the difference between interface and abstract class in c#?
Why delegates are type safe?
What does dbml mean?
What are the different types of comments in c#?
What are virtual destructors?
What are c# types?
What are the return types in c#?