What is out int in c#?



What is out int in c#?..

Answer / Bragendra Singh Kushwaha

In C#, 'out' keyword is used to pass parameters by reference. An 'out' parameter can be initialized with a default value before calling the method, and its value is modified within the method. The value of an 'out' parameter has no meaning until it is assigned in the method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Does main have to be static c#?

1 Answers  


What are object oriented concepts?

6 Answers   Adea, Microsoft,


Can the accessibility of a type member be greater than the accessibility of its containing type?

1 Answers  


Explain streamreader/streamwriter class?

1 Answers  


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

1 Answers   Siebel Systems,


How do I port "synchronized" functions from visual j++ to c#?

1 Answers  


How long can a string be c#?

1 Answers  


What is the concept of strong names?

1 Answers  


Are objects passed by reference in c#?

1 Answers  


Explain the 3 types of properties in c# with an example?

1 Answers  


What is msil in c#?

1 Answers  


What is the use of private constructor in c#?

1 Answers  


Categories