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 default value of bool in c#?
How can you read 3rd line from a text file?
What's the difference between a static method and a non static method c#?
When a switch is said to be congested?
How do you specify a custom attribute for the entire assembly (rather than for a class)?
How you will create satellite assemblies?
What is int32 maxvalue?
Describe an interface class?
Can you inherit multiple abstract classes in c#?
What is the difference between string and string in c#?
What is the purpose of abstract class in c#?
Explain the types of assemblies in .net?
What are logical operators in c#?
What is escape sequence in c#?
How can I get around scope problems in a try/catch?