Home  |  Contact us    
Reference parameter vs Output parameter


What is the difference between reference parameter and output parameter?

Modifications of a reference parameter and output parameter impact the corresponding argument. So an output parameter is similar to a reference parameter, except that the initial value of the caller-provided argument is unimportant.


In C# a reference parameter is declared with a ref modifier but an output parameter is declared with an out modifier.



Category: Object Oriented Programming (OOPS) Concepts Faqs, Interview Questions & Answers



Ask New Questions
Microsoft.Net Framework
.Net 2.0 Namespaces
.Net Assemblies
OOPS Faqs in C#
ASP.Net Faqs
ASP.Net 2.0 Faqs
Web Services Faqs
ADO.Net Faqs
Database Faqs
OOPS Faqs
IT Project Management