Top "Function-prototypes" questions

Anything related to C and C++ function prototypes.

Must declare function prototype in C?

I am kind of new to C (I have prior Java, C#, and some C++ experience). In C, is it …

c function function-prototypes
c++0x: proper way to receive a lambda as parameter by reference

What is the right way to define a function that receives a int->int lambda parameter by reference? void …

c++ lambda c++11 function-prototypes function-parameter
How to set the prototype of a JavaScript object that has already been instantiated?

Suppose I have an object foo in my JavaScript code. foo is a complex object and it is generated somewhere …

javascript function-prototypes
Why does a function with no parameters (compared to the actual function definition) compile?

I've just come across someone's C code that I'm confused as to why it is compiling. There are two points …

c parameters function-prototypes function-parameter
What are the valid signatures for C's main() function?

What really are the valid signatures for main function in C? I know: int main(int argc, char *argv[]) Are …

c language-lawyer signature entry-point function-prototypes
Javascript when to use prototypes

I'd like to understand when it is appropriate to use prototype methods in js. Should they always be used? Or …

javascript performance prototype function-prototypes
error C2371: 'functionname' redefinition: different basic types

i have a Problem. I use Visual Studio 2013 and get the following Error: Error C2371: 'getgrundflaeche' redefinition: different basic types. …

c function-prototypes redefinition
How to forward-declare/prototype a function in Python?

How do I prototype a method in a generic python program similar to C++? //PROTOTYPE do python protoyping writeHello() //GIVES …

python function-prototypes
Javascript prototype operator performance: saves memory, but is it faster?

I read here (Douglas Crockford) using prototype operator to add methods to Javascript classes saves also memory. Then I read …

javascript performance function-prototypes
Mongoose/MongoDB result fields appear undefined in Javascript

Is there something that I'm missing that would allow item to log as an object with a parameter, but when …

javascript mongodb mongoose javascript-objects function-prototypes