My Size Snowman Poem

What is the difference between .size() and .length ? Is .size() only for arraylists and .length only for arrays?

my size snowman poem 1

I'm looking for detailed information regarding the size of basic C++ types. I know that it depends on the architecture (16 bits, 32 bits, 64 bits) and the compiler. But are there any standards for ...

my size snowman poem 2

What does the C++ standard say about the size of int, long?

The C standard guarantees that SIZE_MAX will be at least 65535. size_t is the type returned by sizeof operator, and is used in the standard library (for example strlen returns size_t).

my size snowman poem 4

Denoted as Long Size = 64 bits (8byte) Can hold integers of range -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 default value is 0L If your usage of a variable falls in the 32 bit range, use Int, else use long. Usually long is used for scientific computations and stuff like that need much accuracy. (eg. value of pi).

The OP specifically asked Where do I find the definition of size_t? I landed here searching for the same thing. The cited dup does not discuss where to find the declaration.

my size snowman poem 6

Where do I find the definition of size_t, and what is it used for?

How do I determine the size of my array in C? That is, the number of elements the array can hold?

my size snowman poem 8