Top "Function-parameter" questions

The function parameters are the variable names, listed in the definition of the function.

When a function has a specific-size array parameter, why is it replaced with a pointer?

Given the following program, #include <iostream> using namespace std; void foo( char a[100] ) { cout << "foo() " <&…

c++ arrays standards sizeof function-parameter
Passing arguments to functions with const parameters: is it faster?

Consider, for example: int sum(int a, int b) { return a + b; } vs. int sum(const int a, const int …

c constants function-parameter
Does C support optional null parameters?

In Python, I'm used to things like def send_command(command, modifier = None): and then the modifier argument is optional, …

c null optional-parameters function-declaration function-parameter
Why should I declare a C array parameter's size in a function header?

Can anyone enlighten me as to why I should bother to specify the size of a C array argument in …

c arrays function-parameter
Default value for function parameters in VB6

How to specify default value for a parameter in VB6?

vb6 function-parameter
C++ : Meaning of const char*const*

In one of the C++ programs, I saw a function prototype : int Classifier::command(int argc, const char*const* argv) …

c++ pointers function-prototypes function-parameter
Passing functions as arguments in C++

I'm a bit rusty in C++ and I'm switching after a year of python. Naturally I would like to translate …

c++ function-parameter
c# Enum Function Parameters

As a follow on from this question. How can I call a function and pass in an Enum? For example …

c# enums function-parameter
How to take a typename as a parameter in a function? (C++)

I need to be able to pass a typename as a parameter: int X = FileRead(file, 9, char); The concept is …

c++ file-io typename function-parameter
How to create a polyvariadic haskell function?

I need a function which takes an arbitrary number of arguments (All of the same type), does something with them …

haskell variadic-functions function-parameter polyvariadic