%d, %o, int16_t, and int32_t

What is %d, %o, int16_t, and int32_t? I was browsing through the PROS API and found these in some functions I thought could be useful.

I’m assuming the % things you found were in calls to printf or some other string formatting function, in which case they’re format specifiers. Here’s a list of those.

int<n>_t types are called fixed width integer types. The number of bytes in normal integer types (char, int, long, etc) is implementation-defined, so it can be useful to explicitly specify an exact width in some circumstances. Here’s a list of them.

3 Likes

Thanks!

20 characters