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
What is xml c#?
Write the syntax for catching an exception in c#?
what class is underneath the sortedlist class?
Explain the difference between passing parameters by value and passing parameters by reference with an example?
What is the difference between static and constant variables?
Differentiate between static class and singleton instance?
What is the use of list in c#?
What is public or shared assemblies ?
Why do we use interfaces in c#?
What are methods c#?
What are the basics of c#?
What does using do in c#?
Explain attributes in c#?
If I return out of a try/finally in c#, does the code in the finally-clause run?
How to reverse each word in a string using c#?