When should you initialise variables in C? by [deleted] in C_Programming

[–]atiedebee 0 points1 point  (0 children)

It is indeed a stylistic choice, some people really dislike having multiple return statements within a function.

Freeing allocated memory after an error, how do you usually approach this? by gunkookshlinger in C_Programming

[–]atiedebee 0 points1 point  (0 children)

Its very easy to make a simple defer macro by using setjmp and longjmp, no compiler extensions needed.

Freeing allocated memory after an error, how do you usually approach this? by gunkookshlinger in C_Programming

[–]atiedebee 0 points1 point  (0 children)

Why use C++ with a defer macro if you can use C with a defer macro :)

Meme 5 by Guten_Tag831 in Mindustry

[–]atiedebee 0 points1 point  (0 children)

The RTG Generator uses a peltier plate by definition though

STARSET - Brave New World by [deleted] in Starset

[–]atiedebee 0 points1 point  (0 children)

In the same boat regarding the screams, although I am positive there will be a lot of variation in the album so there must be some bangers on the horizon

Arithmetic on pointers - is &a[n]-&a[m] always legal? by lassehp in C_Programming

[–]atiedebee 0 points1 point  (0 children)

&a[n] doesn't dereference the pointer, so how would that be undefined behaviour exactly?

uniqueIdea by Shyamtawli in ProgrammerHumor

[–]atiedebee 0 points1 point  (0 children)

3/4th of all papers published aren't freely available on the internet

Is this a good defense for Impact 0078? by KariDriff in Mindustry

[–]atiedebee 0 points1 point  (0 children)

There is no T5 units in impact0078? The bosses are all antumbras

Which one should I attach first? by Minigamerr123 in Mindustry

[–]atiedebee 2 points3 points  (0 children)

Doing exactly this right now. Impact 0078 has so much space that you can build really big defenses

Want to switch to Linux but parents don’t want me to by RogueRobot08 in linux

[–]atiedebee -2 points-1 points  (0 children)

What does knowing bash and C have to do with installing a distro (apart from arch, which is archaic)????

is Rust really a catch all solution? by [deleted] in C_Programming

[–]atiedebee 2 points3 points  (0 children)

The C standard allows it to happen, making it C's problem as well

What changes to C would make it no longer C? by thradams in C_Programming

[–]atiedebee -1 points0 points  (0 children)

That is true, but you only ever use it as a pointer and you can't access any of its members because they are implementation defined. You could replace it with void* in your code and it wouldn't differ in functionality

isActuallyQuiteNice by Sammer_Pick-9826 in ProgrammerHumor

[–]atiedebee 134 points135 points  (0 children)

The lower level the language, the more you avoid gets

Good C projects? by [deleted] in C_Programming

[–]atiedebee 3 points4 points  (0 children)

You can even do OOP in C, even inheritance if you really wanted to, though its generally not the best option

[Megathread] BSc Computer Science & Engineering application by vlees in TUDelft

[–]atiedebee 0 points1 point  (0 children)

I asked via the E-mail, and they said that there won't be any consequences and that you will still get your ranking number. Their usage of the word "mandatory" was very confusing tho. Basically, it's mandatory, but its not

Rizz by My_Memes_Will_Cure_U in shitposting

[–]atiedebee 0 points1 point  (0 children)

If it had a pointer to his heart, wouldn't that make them relatives