C programmers don't go to school because they don't have classes
C programmers don't go to school because they don't have classes
Other urls found in this thread:
en.m.wikipedia.org
twitter.com
C humor thread?
Why didn't you post any humor?
kek
cause it is humour you yankee
No, C programmers don't go to school because they're fucking dense and learning anything new is beyond their mental capabilities.
No, C programmers don't go to school because they are going to be taught Java or some shit and they know that anything other than C is for mongoloids like you.
Here's a joke:
C# on Linux
>What is Mono
What's the joke?
C programmers don't go to school because it's CIA prison to brainwash you
This
#define PLANETS \
PLANET(Mercury) \
PLANET(Venus) \
PLANET(Earth) \
PLANET(Musk) \
PLANET(Jupiter) \
PLANET(Saturn) \
PLANET(Uranus) \
PLANET(Neptun)
#define PLANET(e) e,
enum Planets {
PLANETS
PLANETS_COUNT
};
#undef PLANET
#define PLANET(e) #e,
char *Planets_string[] = {
PLANETS
};
#undef PLANET
for (int i = 0; i < PLANETS_COUNT; i++)
printf("%d %s\n", i, Planets_string[i]);
0 Mercury
1 Venus
2 Earth
3 Musk
4 Jupiter
5 Saturn
6 Uranus
7 Neptun
Based Terry poster.
I didn't go to computer school, I went to computers.
lmao gottem
what does this mean
>this is what C brainlets actually "think"
Comical indeed.
> do ./program.exe
> actually runs
This has no right to work.
I mean, C# doesn't make me want to shoot myself, so it has that going for it
are you retarded?why use a string array for representing planets wasting a shitton of memory(and strings are also a pain in the ass to handle) instead of just using enums.they are literally made for this purpose.LITERALLY.or at least define's for fuck sake,even i know that and i hate c.
So what's the pros of doing it this way? Is it more efficient than the other one?
what if the array is actually for storing and accessing the names of the planets you fucking nimwit
It's more safe, for one.
>loads of preprocessor magic
Thank you for your time, user, we will call you back.
you get both enum and strings for it with only single definition place and when you need to change the list (e.g. remove pluto) you only have to do it on one place
>It's more safe, for one.
How so? I'm legitimately curious.
>what if the array is actually for storing and accessing the names of the planets you fucking nimwit
then you should be using an enum retard.
typedef enum {
mercury,venus,earth,mars,jupiter,saturn,uranus,neptune,pluto
}Planets;
int main() {
Planets shit = mercury;
return 0;
}
Thanks f a m
>typedef
School is for nigger cattle.
>he uses the preprocessor