About 4,620,000 results
Open links in new tab
  1. 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 …

  2. 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...

  3. 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.

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

    In this article, I am going to discuss Functions using Array in C with Examples. How to pass and return array from function in C?

  5. Passing Arrays to Functions in C - Online Tutorials Library

    If you want to pass an array to a function, you can use either call by value or call by reference method. In call by value method, the argument to the function should be an initialized array, or …

  6. Passing Arrays as Function Arguments in C - W3schools

    Passing Arrays as Function Arguments. In C, we can pass arrays to functions in different ways. Let's look at each method one by one. 1. Pass Array with Call by Value Method. In C, when …

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

    Dec 3, 2017 · Returning an array from function is not as straight as passing array to function. There are two ways to return an array from function. But I personally prefer to pass array to …

  8. How to Pass an Array to a Function in C - Tutorial Kart

    In this tutorial, we explored different ways to pass arrays to functions in C: Passing a 1D array to print its elements. Modifying an array inside a function. Passing a 2D array to a function. …

  9. Passing array to function in C programming with example

    Sep 24, 2017 · In this guide, we will learn how to pass the array to a function using call by value and call by reference methods. To understand this guide, you should have the knowledge of …

  10. Passing Array Elements to a FunctionC Programming

    Mar 1, 2017 · There are two ways of passing an array to a function – by value and by reference, wherein we pass values of the array and the addresses of the array elements respectively. By …

  11. Some results have been removed
Refresh