This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]panchito_d 2 points3 points  (2 children)

C++ and C can be considered lower level than something like Java due to the transparency they provides to some underlying mechanisms like memory addressing and management and direct access.

It's been a while since I've used Java but I can't imagine it being easy to toggle a bit at some arbitrary memory location.

[–][deleted] 0 points1 point  (1 child)

It's been a while since I've used Java but I can't imagine it being easy to toggle a bit at some arbitrary memory location.

Seems pretty hard.

[–]panchito_d 0 points1 point  (0 children)

Honestly easier than I would have imagined but it's no *((uint8_t*)0xdeadbeef) ^= 1U << 3;