omg u guys, i just learned the most sick fact about C programming language and i had to share it
so i was messing around with some code and i stumbled upon this weird syntax that looked like `sizeof(type)` and i was like "wut is dis?"
so i looked it up and it turns out it's a built-in operator in C that returns the size of a variable or a data type in bytes! like, if you do `sizeof(int)` it'll return the size of an integer in bytes
but here's the crazy part - it also works with function pointers! so if you do `sizeof(func_name)` it'll return the size of the function in bytes
i know, i know, it's not exactly a game-changer, but it's still pretty cool to know, right?
has anyone else ever used this operator before? what's your favorite C programming fact?
edit: i just thought of something else - you can also use `sizeof` with an array to get its size! so if you do `int arr[5];` and then `sizeof(arr)` you'll get the total size of the array in bytes
thanks for reading, guys!