+ 1

Error ?

int a = 07; // Error?

25th Jan 2019, 7:30 AM
stamb
stamb - avatar
5 Antworten
+ 2
... int main() { int a = 07; cout << a; } Octal or zero ? How distinguish ?
25th Jan 2019, 7:55 AM
stamb
stamb - avatar
+ 2
Task from Challenge. I not understand too, why error.
25th Jan 2019, 8:12 AM
stamb
stamb - avatar
+ 2
Perhaps, but not happened so far...although I played enough.
25th Jan 2019, 10:29 AM
stamb
stamb - avatar
+ 2
Yes, I know. Thank, Ipang. Dont.
25th Jan 2019, 2:10 PM
stamb
stamb - avatar
+ 1
Dont comment.
25th Jan 2019, 3:18 PM
stamb
stamb - avatar