ref | out |
Parameters passed with the prefix “ref”. By using “ref” C# implements the concept called “Call by reference”. | Parameters passed with the prefix “out”. |
An argument passed by ref must be assigned with a value before the call. | ‘out’ parameter must assigned with some value prior to the termination of the function. |
Thursday, September 3, 2015
Home
»
C# Interview Questions
»
Daily Interview Questions #15 : What is the difference between the C# keywords ‘ref’ and ‘out’?
Daily Interview Questions #15 : What is the difference between the C# keywords ‘ref’ and ‘out’?
By
Francis
Posted at
5:26 AM
C# Interview Questions
No comments
About Francis
Francis, an Associate at Cognizant. Having 7+ Years of experience in Microsoft web technologies.
Please give your valuable comments to improve the contents
- Learn By Experience: SMS Gateways
- ASP.Net Forums - FAQ #2 : ASP.Net Project Ideas
- ASP.Net Forums – FAQ #1 : How to enable Adsense in my site?
- Main components of .Net Framework
- ASP.Net Forums–FAQ #6: ASP.Net Session Expired Problem
- How to Send SMS From ASP.Net Web Application?
- Visual Studio Tips & Tricks: 2 – Create Virtual Directory Problem
- Visual Studio Tips & Tricks–10 : How to Change the color theme in Visual Studio 2015?
- CRUD Operation - ASP.Net MVC with ADO.Net
- .Net Architecture
0 comments :