About 4,360,000 results
Open links in new tab
  1. Return an Array in C - GeeksforGeeks

    Jun 28, 2024 · Returning an Array from a Function in C. Return an array in C using Pointers; Return an array in C using Static Arrays; Return an array in C using Structures

  2. How to pass and return array from function in C? - Codeforwin

    Dec 3, 2017 · Here in this post I will explain how to pass and return array from function in C programming. How to pass single dimensional array to function? In C you can pass single …

  3. Returning an array using C - Stack Overflow

    To return an array, create one outside the function, pass it by address into the function, then modify it, or create an array on the heap and return that variable. Both will work, but the first …

  4. C Return Arrays from Function - Online Tutorials Library

    In C, a function can be made to return an array by one of following methods −. Passing the array as argument and returning the pointer; Declaring a static array in a function and returning its …

  5. Pass arrays to a function in C - Programiz

    In this tutorial, you'll learn to pass arrays (both one-dimensional and two-dimensional arrays) to a function in C programming with the help of examples.

  6. Return Array from Function in C - Arrays in C - W3schools

    Now, let's explore different ways to return arrays from functions! Pass Array by Reference. In C, when we pass an array to a function, we're actually passing a reference to the first element of …

  7. Pass Array to Functions in C - GeeksforGeeks

    Mar 7, 2025 · Passing an array to a function allows the function to directly access and modify the original array. In this article, we will learn how to pass arrays to functions in C. In C, arrays are …

  8. Functions using Array in C with Examples - Dot Net Tutorials

    Here I will explain how to pass and return an array from a function in C programming. How to pass a single dimensional array to function? In C you can pass single-dimensional arrays in two …

  9. Passing an array as an argument to a function in C

    Jul 4, 2011 · I wrote a function containing array as argument, and call it by passing value of array as follows. void arraytest(int a[]) { // changed the array a a[0] = a[0] + a[1]; a[1] = a[0] - a[1...

  10. Passing Array to Function in C - Scaler Topics

    Apr 25, 2024 · We can return an array from function in C using four ways. For first three cases we can return the array by returning poiniter pointing to base address of the array. 1. Returing the …

  11. Some results have been removed
Refresh