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.
- Modified
- 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?
"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?
- Modified
- 10 Dec at 06:18
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?
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`)?
- Modified
- 17 Aug at 13:53
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?
- Modified
- 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 ...
- Modified
- 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?
- Modified
- 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`?
- Modified
- 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.:
- Modified
- 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.
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?
- Modified
- 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.
- Modified
- 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?
- Modified
- 22 Mar at 10:9
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?
- Modified
- 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:
- Modified
- 30 Dec at 10:10
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...
- Modified
- 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?
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...
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...
- Modified
- 16 Jan at 00:21
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#):
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...
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...
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?
- Modified
- 1 May at 22:55
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...
- Modified
- 12 Apr at 01:7