Answer:
It will give Compile time error:Use of unassigned local variable 'arg'
as C# enforces the rule that we must assign a value to a variable before we can read it. This rule also applies to method arguments, we cannot pass an uninitialized value as an argument to a method even if an argument is defined as a ref argument.
Asked In: Many Interviews |
Alert Moderator