What is the output of this C# code?
delegate void d(int i);
class P {
public static void Main() {
td(new d(ff));
}
public static void td (d sf) {
sf(-9);
sf(22);
}
public static void ff (int i) {
System.Console.Write("{0} ", -(i-2));
} }
the output of this C# code are 11 and -20
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C#