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

    64 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 …

  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 …

  3. size_t or int for dimensions, index, etc - Software Engineering …

    Dec 14, 2016 · It is valid for the compiler to typedef size_t to be unsigned int, and it's also valid for it to be typedefed to unsigned long. If you use int or long directly, you'll eventually run into …

  4. Integer conversion with Console.ReadLine () [closed]

    To read an integer from user input, you can use: int number = Convert.ToInt32(Console.ReadLine()); But why won't the following work? int number = (int) …

  5. c - When using int's as boolean values, is it in poor form to use 0's ...

    When using int's as boolean values, is it in poor form to use 0's and 1' directly? Ask Question Asked 12 years, 4 months ago Modified 11 months ago

  6. Why can't `main` return a double or String rather than int or void?

    Jun 29, 2013 · In many languages such as C, C++, and Java, the main method/function has a return type of void or int, but not double or String. What might be the reasons behind that? I …

  7. What is the difference between function() and function(void)?

    Jun 11, 2015 · C and C++ are different in this respect. ... 10 The special case of an unnamed parameter of type void as the only item in the list specifies that the function has no …

  8. 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 …

  9. "Undoing" an integer wraparound - Software Engineering Stack …

    Technically, what you need is x*33%(INT_MAX+1) == test_value but integer overflow will automatically do the % operation for you unless your language uses arbitrary precision …

  10. 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 …