

3·
11 days agoIsn’t this just like the internet though?


Isn’t this just like the internet though?


types in C are pretty weird
int *a can be read as
*a is a inta is a pointer to intint *a, b is read as
*a and b are inta is a pointer to int and b is a intbool getofmylawn(Lawn lawn)
getoffmylawn(Lawn lawn) is a boolgetoffmylawn is a function that takes a Lawn and returns a boolAnd then you have function pointers
bool (*foo(int a))(float b)
(*foo(int a))(float b) is a bool*foo(int a) is a function from float to boolfoo(int a) is a function pointer from float to boolfoo is a function that takes a int and returns a function pointer from float to boolreally weird in my opinion.
Am i weird for using Y down right chiral on all my projects?
if you have krunner installed, you can also look for the definition by typing
define wordyouwant