Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> { 0xFF, 0xD8, 0xFF, 0xE0, ... }

You're right of course but experienced developers know to write those as strings instead of arrays, especially for very large content. Otherwise both the compiler and IDE become painfully slow. ie your example would be written "\xFF\xD8\xFF\xE0..."



Don't try that in MSVC. It deliberately chokes on large strings. If you work hard you might put a few thousand integers in a string, but this example has a million integers. Most ways you can attempt that in MSVC time out, abort compilation or emit an error.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: