What is the difference between ref & out parameters?

Answer Posted / satya

ref keyword is used while passing the parameters by reference.
out keyword is used while passing the parameters by out

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is regex c#?

482


What are the benefits of using the aggregate method in linq?

499


Is there throws keyword in c#?

485


What is the syntax for calling an overloaded constructor within a constructor?

531


What is entity framework in c#?

471






What is a method signature c#?

515


What exactly is serverless?

422


Distinguish between the Debug class and Trace class with its functionality?

532


What is difference between array and collection?

461


What does int32 mean?

473


Are constructors inherited c#?

506


Why do we use public static void main in c#?

463


What is the difference between interface and functional interface?

482


What is a console application in c#?

446


How do you concatenate in c#?

485