Why does the standard not contain a signed character in the syntax of constants?
Only numbers are mentioned here, and the sign is present only in exhibitors .
The standard does not bother the sign before numeric literals, because it will be redundant.
The syntax already captures the sign as part of the unary plus +and unary minus -operators. When you write
+
-
int a = -4;
the syntax of the right-hand side could be adequately described as a unary minus expression -with an operand 4. This is an approach that takes the standard.
4
- -2, 4-2 ( ). , -2147483648 - 2147483648 ( int, a long, int - 32 , long ). .
-2
4-2
-2147483648
- 2147483648
int
long
- , -2147483648 , x-1 , . , , C.
x-1
Source: https://habr.com/ru/post/1671663/More articles:An integer constant not in the representable range - cGet the getter property of an interface interface - reflectionStart loading a large file from a fully formed response - node.jsScore aggregation results in ElasticSearch - functionAre there existing, elegant templates for the optional TOP offer? - sqlHow to make 1/3 of the image in full screen - flutterКак определить десятичную метку для текущей локали системы в R? - rChange FROM and REPLYTO address in Laravel 5.4 - laravelУсловный рендеринг в cycle.js с RxJS - javascriptWhy does any ('') return a logical 0 and all ('') return a logical 1? - matlabAll Articles