About 3,990,000 results
Open links in new tab
  1. What does -> mean in Python function definitions? - Stack Overflow

    Jan 17, 2013 · As other answers have stated, the -> symbol is used as part of function annotations. In more recent versions of Python >= 3.5, though, it has a defined meaning.

  2. Is it a good practice to define C++ functions inside header files?

    Function add is a one-liner. When is it acceptable to put a function definition in a header file? I've heard somewhere that short member functions are OK to be defined in a header file, IF you do …

  3. Why am I getting "IndentationError: expected an indented block"?

    In Python 3.10.9 I had an empty method followed by another method in a class definition. This resulted in error IndentationError: expected an indented block after function definition on line 10.

  4. What is a function? - Mathematics Stack Exchange

    Jan 1, 2015 · See Function : "a function is a relation between a set of inputs and a set of permissible outputs with the property that each input is related to exactly one output." The …

  5. Error: function definition is not allowed here. How to correct this?

    Sep 8, 2020 · C does not allow nested function definitions. But gcc allows this as an extension, therefore your code compiles with gcc. However I recommend not to use nested functions …

  6. Warning/error "function declaration isn't a prototype"

    You can call such a function with any arbitrary number of arguments, and the compiler isn't required to complain -- but if the call is inconsistent with the definition, your program has …

  7. How to show uses of function in Visual Studio Code?

    Jan 15, 2017 · I am used from Pycharm to be able to press ctrl + click on a function definition and see the uses. Is there an equivalent in VSC?

  8. Where to put default parameter value in C++? - Stack Overflow

    What's the place for the default parameter value? Just in function definition, or declaration, or both places?

  9. c - Function declaration: K&R vs ANSI - Stack Overflow

    What are the differences between a K&R function declaration and an ANSI function declaration?

  10. Storing C++ template function definitions in a .CPP file

    But i must say i believe it's not efficient to store function definitions in a cpp file. I only understand the need to separate the function's declaration and definition. When used together with explicit …