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 a partial method?
What are the types of access modifiers?
What is generic collection in c#?
Why do I get a security exception when I try to run my c# app?
What is concatenation and when should it be used?
What is default value of enum c#?
Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?
What happens if the inherited interfaces have conflicting method names?
What is the difference between static and constant variables?
Is an array an object c#?
What is Event - Delegate?
Is versioning applicable to private assemblies?
what is c# command?
What is a datacontract?
Why generics are used in c#?