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 the syntax for calling an overloaded constructor within a constructor?
What is an extension method in c#?
Is array a list?
What are predicates in c#?
What is yield keyword?
What is the benefit of interface in c#?
What is the main purpose of linq?
What is singleordefault?
How do I link two windows forms in c#?
what is a enumeration in c#
Can a class be private in c#?
Explain synchronous and asynchronous operations?
Can an int be negative c#?
what is the difference between a struct and a class in c#?
What does an indexer do?