/ Quiz

.NET Quiz Question

I will post some programming language quiz questions from time to time. That's the first C# question:

public static void Main() {
  var u = new User();
  u.Name = "Tim";
  UpdateName(u, "Tom");
  Console.WriteLine($"Name is {u.Name}");
public static void UpdateName(User user, string name) {
  user.Name = name;

Questions: How to print "Tom"? How to print "Tim"?

Alex Netkachov

Alex Netkachov

Alex likes functional programming and algorithms. Apart from programming, his favourites are walking with his family in the parks and national trails and reading about universe and history.

Read More