ulong foo = 0;
ulong bar = 0UL;//this seems redundant and unnecessary. but I see it a lot.
我也看到這個引用數組的第一個元素量好爲什麼或者爲什麼不用'UL'來指定無符號長整型?
blah = arr[0UL];//this seems silly since I don't expect the compiler to magically
//turn '0' into a signed value
有人可以提供一些見解,爲什麼我需要「UL」整個指定具體,這是一個unsigned long?
+1是的,這確實應該在任何地方進行編譯器生成一個警告。 – patros 2009-08-13 18:35:12