Answer Posted / satya
if you want pass parameters by reference then ref keyword
should be used in calling and called methods
void add(ref int x)--- called(formal parameter)
add(ref a)-----calling(actual parameter)
.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is versioning applicable to private assemblies?
what are the different ways a method can be overloaded?
What is Covariance and contravariance in C#?
What is winforms c#?
What are indexers in c# .net?
Why would you use a class property in c#?
What does the keyword “virtual†declare for a method or property?
Can I get the name of a type at runtime?
Can struct have constructor c#?
what is the syntax to inherit from a class in c#?
What are the namespace level elements?
What are the steps to create an assembly and add it to the gac?
What are console applications used for?
How to rotate an Image in C#?
How Global.asax is used ?