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 are extender provider components? Explain how to use an extender provider in the project.
What is the namespace for the thread class?
What language is c# similar to?
What is the difference between convert and parse in c#?
how background thread access to ui control?
Can a struct be null?
Which constructor is called first in c#?
How C# 4.0 supports dynamic programming language?
What is value c#?
What are strong name assemblies?
Explain the use of SN.exe
What are anonymous types in c#?
What is the difference between dynamic type variables and object type variables in c#?
What is the difference between do and while loop?
Why do we need generics in c#?