Feb 27, 2023

Fun with references in C# - Part I / II

Leia este post em português

Lire cet post en Français.

I'll begin 2023 (late February :)) posts with a quick puzzle about C#.

Given the program below answer the following questions:

1. What is its output ?

2. Can you spot/explain the issues in the code?

3. How could one pinpoint the issue?

Of course you are free to compile/run it, and I do encourage you to do so, but I do suggest to only do it after you have formulated an hypothesis or if only inspecting the code does not ring any bells.

See you in the next post.

Have fun!

Adriano

No comments: