Leading zero specifies octal constant, not decimal

image_pdfimage_print
   
 

using System;

public class MainClass{
    public static void Main() {
        int k = 0365;  // Leading zero specifies octal constant, not decimal
        Console.WriteLine(k);
    }
}

   
     


This entry was posted in Data Types. Bookmark the permalink.