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 c# pass by reference?
Is c# int immutable?
What is the keyword used to prevent a class from being inherited by another class?
Why do we need abstract class?
Do loops in c#?
explain Garbage collector’s functionality on unmanaged code
Is c# easier than javascript?
Write a sample code to write the contents to text file in c#?
Which is executed if an exception has not occurred?
How do I register my code for use by classic com clients?
Why c# is type safe?
How many root nodes are there in an xml document?
What is a nested type. Give an example?
Which attribute is used in order that the method can be used as webservice?
What is interface used in c#?