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
In which format you can pass the value in the sleep function?
What is the benefit of delegate in c#?
Can an array be null c#?
What is .cs file in c#?
What are extender provider components? Explain how to use an extender provider in the project.
if a method is marked as protected internal who can access it?
How can you reference current thread of the method ?
What is singleordefault?
Who benefits from ajax?
Are multiple data types stored in System.Array?
I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??
Is c# a strongly-typed language?
What is object array in c#?
What is Implicit conversion in C#?
Why do we use inheritance in c#?