About 146,000,000 results
Open links in new tab
  1. C Functions - W3Schools

    The purpose of the function is to save the code, and execute it when you need it. Like in the example below, we have created a function to calculate the sum of two numbers.

  2. Functions in C - GeeksforGeeks

    Oct 18, 2025 · A function is a named block of code that performs a specific task. It allows you to write a piece of logic once and reuse it wherever needed in the program. This helps keep your …

  3. How to Use Functions in C - Explained With Examples

    Apr 6, 2023 · Functions are an essential component of the C programming language. They help you divide bigger problems into smaller, more manageable chunks of code, making it simpler …

  4. C Programming/Procedures and functions - Wikibooks

    Nov 11, 2025 · In C programming, all executable code resides within a function. Note that other programming languages may distinguish between a "function", "subroutine", "subprogram", …

  5. Methods in C | Learn X By Example

    Our first example demonstrates how to define and use methods in C. Since C doesn’t have built-in support for methods, we’ll use function pointers to simulate this behavior.

  6. Create Functions in C - LabEx

    In this lab, you will learn how to create and use functions in C programming. The lab covers the fundamental concepts of declaring and defining functions, understanding function arguments, …

  7. C Functions - Programiz

    In this tutorial, you will be introduced to functions (both user-defined and standard library functions) in C programming. Also, you will learn why functions are used in programming.

  8. C Programming - Functions - University of Utah

    In C, all functions must be written to return a specific TYPE of information and to take in specific types of data (parameters). This information is communicated to the compiler via a function …

  9. Functions in C Programming: Syntax, Types, and Best Practices

    In this guide, we will cover the basics of functions in C, their types, syntax, examples, advantages, and best practices to master them. What is a Function in C? A function in C is a group of …

  10. Def in C – How to Define a Function in C - freeCodeCamp.org

    Apr 12, 2024 · In this article, you will learn how to create user-defined functions. Here is the general syntax of a function in C: Let’s break it down: The return_type lets the C compiler …