Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Linus on compiler warnings and code reviews. Parent comment
The bracket notation ex: myarray[2] is actually just a sugar syntax for: * (myarray+2)
An array is nothing more than an address and a (hopefully) know length. Not really a "data structure" or object by no means.
You could definitely roll your own though with something like:
struct { char * arr, int size } my_struct; for(int i = 0; i < my_struct.size; i++){ printf('%x', my_struct.arr[i]); } ect,
The bracket notation ex: myarray[2] is actually just a sugar syntax for: * (myarray+2)
An array is nothing more than an address and a (hopefully) know length. Not really a "data structure" or object by no means.
You could definitely roll your own though with something like: