About 17,200,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 · An array in a function call will be passed to the function as a pointer, which is analogous to passing the array by reference. EDIT: There are three such special cases where …

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

  5. 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. …

  6. 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 …

  7. Passing Array to Function in C - Scaler Topics

    Apr 25, 2024 · To pass individual elements of an array to a function, the array name along with its subscripts inside square brackets [] must be passed to function call which can be received in …

  8. 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 …

  9. Pass Array to Functions in C - Tutorial Gateway

    This article shows How to write a C Program to pass array to functions. Or How to pass array to functions in C programming with example.

  10. 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 …

Refresh