Are long-suffix and unsigned-suffix needed when declaring long literals in C++?

前端 未结 4 2023
天命终不由人
天命终不由人 2021-01-07 01:22

I have some ancient memories of writing C code like:

long value = 0;

in the bad old Win16 days and ending up with value being

4条回答
  •  孤街浪徒
    2021-01-07 02:05

    No this should not be required any more. The behavior you are describing, if visible in the program and not just the debugger, is a bug.

提交回复
热议问题