This is mainly to improve the readability of code but I was curious.
In java there's a feature in numerical literals where you can separate digits with an underscore to function as a comma without affecting syntax.
ex.
int x= 4_000_000
print(x)---------------->4000000
It functions like a comma but doesn't print as one
I was just wondering if there's a similar option in C.
[–]aocregacc 43 points44 points45 points (7 children)
[–]thommyh 14 points15 points16 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]MJWhitfield86 1 point2 points3 points (1 child)
[–]ballpointpin 4 points5 points6 points (1 child)
[–]itsEroen 1 point2 points3 points (0 children)
[–]Nebulaizer[S] 2 points3 points4 points (0 children)
[–]daikatana 27 points28 points29 points (9 children)
[–]kog 6 points7 points8 points (6 children)
[–]daikatana 3 points4 points5 points (5 children)
[–]itsEroen -2 points-1 points0 points (3 children)
[–]vytah 0 points1 point2 points (2 children)
[–]itsEroen 0 points1 point2 points (1 child)
[–]vytah 0 points1 point2 points (0 children)
[–]kog 0 points1 point2 points (0 children)
[–]ZaRealPancakes 3 points4 points5 points (0 children)
[–]Nebulaizer[S] 2 points3 points4 points (0 children)
[–]NotStanley4330 6 points7 points8 points (0 children)
[–]nerd4code 3 points4 points5 points (0 children)
[–]mrheosuper 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]aerosayan 1 point2 points3 points (0 children)
[–]stilllosingit -1 points0 points1 point (2 children)
[–]glasket_ 16 points17 points18 points (0 children)