Answer to Question #16305 in C# for Anisha Gopal

Question #16305
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));
} }
1
Expert's answer
2012-10-11T11:19:33-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS