About 50 results
Open links in new tab
  1. int* i; or int *i; or int * i; - i; - Software Engineering Stack Exchange

    I prefer int* i because i has the type "pointer to an int", and I feel this makes it uniform with the type system. Of course, the well-known behavior comes in, when trying to define multiple pointers on one …

  2. int * vs int [N] vs int (*) [N] in functions parameters. Which one do ...

    Jan 11, 2015 · In practice, you'll see int accumulate( int n, int *array) most often. It's the most flexible (it can handle arrays of different sizes) and most closely reflects what's happening under the hood. You …

  3. Why should C++ uint8_t data not be printable?

    Dec 1, 2024 · On this github C++ related page the writer said Note that the value_type of those two containers is uint8_t which is not a printable character, make sure to cast it to int before you print. …

  4. history - Why is int in C in practice at least a 32 bit type today ...

    Oct 23, 2023 · Why is int in C in practice at least a 32 bit type today, despite it being developed on/for the PDP-11, a 16 bit machine?

  5. Why are variables declared without a value in C?

    Feb 10, 2022 · So modern coders see int v2=0; as a simple declaration and don't assume the 0 means anything other than "make the compiler happy", but in old C it stuck out as "I intentionally want this to …

  6. What does the "t" in int32_t signify? - Software Engineering Stack …

    Jul 7, 2015 · In C, what meaning, if any does the t at the end of integer types like uint8_t and int32_t have? Where did it originate? Why wasn't the type just called int32?

  7. size_t or int for dimensions, index, etc - Software Engineering Stack ...

    Dec 14, 2016 · size_t or int for dimensions, index, etc Ask Question Asked 9 years, 1 month ago Modified 7 years, 2 months ago

  8. Why are there so many numeric types (bit, int, float, double, long)?

    Typical examples in C would be int, float, and unsigned int, respectively. Fixed-point types are a subcategory of discrete types, but algebraic rings are fundamentally different from numbers [must of …

  9. How does long long syntax work when int int doesn't in C++?

    May 5, 2016 · I was wondering if long long specifies a single datatype then why don't things like int int work? I meant obviously that's not a data type but there is a long data type.

  10. data types - Why were short, int, and long invented in C? - Software ...

    18 I'm having trouble understanding, what were the exact purposes of creating the short, int, and long data types in C? The reason I ask is, it doesn't seem like their sizes are bounded -- they could be of …