Message from C, C++ talks

July 2019

— Thanks

— Thread synchronization is what are looking for just fire up two threads with different priorities in such a way the "water" func start first followed by "melon" func.

Message permanent page

— I post this in other chat

— Then i get booted lol


Algo correct. What is not correct - creation of array. I got segfault, then I just force it to be size of 10 max, result:

— Indeed

— May be it's legit - I know there is VLA, but it doesn't work on my machine.

— Are ideone links allowed?

— I corrected it in ideone

— VLAs are actually a GNU extension, so that's probably why

— They were allowed in one of the ISO C version, but removed in the next iirc

— Were they?

— Removed I mean. Added in C99 or 11

— Vla's are difficult to securely generate code for and pose a risk of overflowing at runtime

— > risk of overflow
Essence of C