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


Please Help Members By Posting Answers For Below Questions

In which format you can pass the value in the sleep function?

543


What is the benefit of delegate in c#?

496


Can an array be null c#?

500


What is .cs file in c#?

519


What are extender provider components? Explain how to use an extender provider in the project.

497






if a method is marked as protected internal who can access it?

564


How can you reference current thread of the method ?

520


What is singleordefault?

513


Who benefits from ajax?

587


Are multiple data types stored in System.Array?

648


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??

1532


Is c# a strongly-typed language?

541


What is object array in c#?

511


What is Implicit conversion in C#?

559


Why do we use inheritance in c#?

477