tagged [function]

How can I create C header files

How can I create C header files I want to be able to create a collection of functions in a header file that I could #include in one of my C Programs.

14 May at 01:41

Function for C++ struct

Function for C++ struct Usually we can define a variable for a C++ struct, as in Can we also define functions for a struct? How would we use those functions?

29 Oct at 16:41

"Parameter" vs "Argument"

"Parameter" vs "Argument" I got and kind of mixed up and did not really pay attention to when to use one and when to use the other. Can you please tell me?

when to pass function arguments by reference and when by address?

when to pass function arguments by reference and when by address? Could anyone explain with some examples when it is better to call functions by reference and when it is better to call by address?

29 Jun at 05:10

Meaning of = delete after function declaration

Meaning of = delete after function declaration What does `= delete` mean in that context? Are there any other "modifiers" (other than `= 0` and `= delete`)?

Calling a function from a string in C#

Calling a function from a string in C# I know in php you are able to make a call like: Is this possible in .Net?

12 Feb at 04:49

Dynamically invoking any function by passing function name as string

Dynamically invoking any function by passing function name as string How do I automate the process of getting an instance created and its function executed dynamically? Thanks Edit: Need an option to ...

29 Apr at 06:43

Python function pointer

Python function pointer I have a function name stored in a variable like this: and I now want to call myfunction like this What's the easiest way to achieve this?

17 Aug at 09:18

Syntax behind sorted(key=lambda: ...)

Syntax behind sorted(key=lambda: ...) I don't quite understand the syntax behind the `sorted()` argument: Isn't `lambda` arbitrary? Why is `variable` stated twice in what looks like a `dict`?

24 Apr at 21:58

Python - use list as function parameters

Python - use list as function parameters How can I use a Python list (e.g. `params = ['a',3.4,None]`) as parameters to a function, e.g.:

12 Feb at 17:43

Function inside a function.?

Function inside a function.? This code produces the result as 56. Any idea what is going inside? I am confused.

9 Feb at 18:32

How can I write a generic anonymous method?

How can I write a generic anonymous method? Specifically, I want to write this: But I get a syntax error at `T`. Can't I have a generic anonymous method?

2 Dec at 19:59

Excel formula to get cell color

Excel formula to get cell color I would like to know if we can find out the Color of the CELL with the help of any inline formula (without using any macros) I'm using Home User Office package 2010.

7 Jul at 08:7

How to turn a string formula into a "real" formula?

How to turn a string formula into a "real" formula? I have `0,4*A1` in a cell (as a string). How can convert this "string formula" into a real formula and calculate its value, in another cell?

How do you pass a function as a parameter in C?

How do you pass a function as a parameter in C? I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C?

29 Jul at 19:9

How do I make function decorators and chain them together?

How do I make function decorators and chain them together? How do I make two decorators in Python that would do the following? Calling `say()` should return:

How can I call a function using a function pointer?

How can I call a function using a function pointer? Suppose I have these three functions: How do I call one of these functions conditionally using a function pointer, and how do I declare the function...

15 Apr at 12:47

Delaying function in swift

Delaying function in swift I don't have a code to sample or anything, because I have no idea how to do it, but can someone please tell me how to delay a function with swift for a set amount of time?

23 Mar at 23:5

Jump to function definition

Jump to function definition How can I jump to a function definition using Vim? For example with Visual Assist, I can type + under a function and it opens a context menu listing the files with definiti...

7 Jun at 11:35

List comprehension vs map

List comprehension vs map Is there a reason to prefer using [map()](https://docs.python.org/3.8/library/functions.html#map) over list comprehension or vice versa? Is either of them generally more effi...

Is there a Function type in C#?

Is there a Function type in C#? I like to know if in C# there is a Function type like in AS3 for example. I would like to do somnthing like this (but in C#):

21 Aug at 17:43

How To Convert A Number To an ASCII Character?

How To Convert A Number To an ASCII Character? I want to create an application where user would input a number and the program will throw back a character to the user. Edit: How about vice versa, chan...

20 May at 08:20

Call C++ library in C#

Call C++ library in C# I have a lot of libraries written in C++. I want to call these libraries from C#, however, I have met many problems. I want to know if there is a book or guideline to tell me ho...

14 Aug at 19:25

How to return a result from a VBA function

How to return a result from a VBA function How do I return a result from a function? For example: This gives a compile error. How do I make this function return an integer?

JavaScript check if variable exists (is defined/initialized)

JavaScript check if variable exists (is defined/initialized) Which method of checking if a variable has been initialized is better/correct? (Assuming the variable could hold anything (string, int, obj...