How C syntax should be
How C syntax should be
Other urls found in this thread:
geeksforgeeks.org
godbolt.org
twitter.com
i'm just learning C - isn't this table how it actually is?
mostly no. it's wierder than that.
Using Python professionally for years has trained me not to think about this shit. Probably not a good thing.
error: I put function pointer returning array of ints twice
thats why python is so slow and not low level
btw, what's the difference between:
int array[][SIZE];
int* array[SIZE];
int** array;
? or would you happen to know any resources that can clarify on this? is this in KR's C book?
pointers are unbounded unless you use a for loop with pointer math. arrays are bounded, arrays are only pointers if you refer to the first element of it like; foo[0]; or foo;
&foo is not a pointer. [] is shorthand for dereference but * means 3 things, pointer, dereference or multiplication
basically same difference between
int arr[];
int *arr;
but with another level of indirection
>arrays are bounded
I am sorry, what language are you talking about, user?