Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Research](https://md.research.elamur.ai/free/en/) · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/) · [OCR](https://md.ocr.elamur.ai/free/en/)

[Elamur Dictionary](https://md.dictionary.elamur.ai/free/en/) · [this page in HTML](https://dictionary.elamur.ai/free/en/english/func/)

[dictionaries](https://md.dictionary.elamur.ai/free/en/) / [English](https://md.dictionary.elamur.ai/free/en/english/) / func

# func

English · noun

## Senses

### Sense 1 · noun · corpus

corpus

A name chosen for a function, a named piece of computer code that performs a task.

Source: Mova's open texts. Licence: cc-by-sa-4.0.

## Forms and counts

### Noun

- Forms: func (Number: Sing); funcs (Number: Plur).
- Seen 2 times in Mova's corpus index.

## Usage and labels

### corpus

In these C code examples, func names a function that takes two whole-number inputs, n and m.

## Examples

3 source examples.

- int func(int n, int m) { // Caution: checks should be made to ensure n \* m \* sizeof(float) does NOT exceed limitations for auto VLAs and is within available size of stack. float p\[n\]\[m\]; // auto VLA is held on the stack, and sized when the function is invoked for (int i = 0; i \< n; i++) { for (int j = 0; j \< m; j++) { p\[i\]\[j\] = i + j; } } print\_array(n, m, p); // no need to free(p) since it will disappear when the function exits, along with the rest of the stack frame return 1; } — [Wikipedia: C (programming language)](https://en.wikipedia.org/wiki/C_%28programming_language%29) (Wikipedia contributors). Licence: [cc-by-sa-4.0](https://creativecommons.org/licenses/by-sa/4.0/). — Mova's open texts (cc-by-sa-4.0)
- int func(int n, int m) { float (\*p)\[n\]\[m\] = malloc(sizeof \*p); if (p == NULL) { return -1; } for (int i = 0; i \< n; i++) { for (int j = 0; j \< m; j++) { (\*p)\[i\]\[j\] = i + j; } } print\_array(n, m, p); free(p); return 1; } And here is a similar implementation using C99's Auto VLA feature: — [Wikipedia: C (programming language)](https://en.wikipedia.org/wiki/C_%28programming_language%29) (Wikipedia contributors). Licence: [cc-by-sa-4.0](https://creativecommons.org/licenses/by-sa/4.0/). — Mova's open texts (cc-by-sa-4.0)
- int func(int n, int m) { float (\*p)\[n\]\[m\] = malloc(sizeof \*p); if (p == NULL) { return -1; } for (int i = 0; i \< n; i++) { for (int j = 0; j \< m; j++) { (\*p)\[i\]\[j\] = i + j; } } print\_array(n, m, p); free(p); return 1; } And here is a similar implementation using C99's Auto VLA feature: — [Wikipedia: C (programming language)](https://en.wikipedia.org/wiki/C_%28programming_language%29) (Wikipedia contributors). Licence: [cc-by-sa-4.0](https://creativecommons.org/licenses/by-sa/4.0/). — an example found by Mova's corpus index (cc-by-sa-4.0)

## Notes and derived forms

### corpus

## Sources

Mova's open texts. Licence: cc-by-sa-4.0.

Mova's word records: counts from Mova's corpus index, word lists from Wiktionary and Mova's concept inventory. Licence: cc-by-sa-4.0.

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://dictionary.elamur.ai/sitemap.xml) · [llms.txt](https://dictionary.elamur.ai/llms.txt)
