65

And the text written out to the console is BC, obviously, or perhaps not so obviously to me as I had spend a bit of time debugging (a much larger) program containing equally trivial C#.

using System;
using System.Text;

namespace ConsoleApp1691
{
    class Program
    {
        static void Main(string[] args)
        {
            StringBuilder sb = new StringBuilder('A');
            sb.Append('B');
            sb.Append('C');
            Console.WriteLine(sb.ToString());
        }
    }
}

This is my shortest blog post yet – more like a long tweet.

— Published by Mike, 20:21:24 17 May 2018 (BST)

Leave a Reply