Skip to main content

Posts

Showing posts with the label Array to Function

Array to Function in C Program #DOTC_Mdb

Array to Function Program in C. Hi Everyone, Today we will discuss about Array to Function in C. This Topic is interesting and we can use array in C functions like function call value and function call by reference. Before starting this topic please go through below topics. https://dheeraj60.blogspot.com/2020/06/array-and-its-beneifts-in-c-program.html https://dheeraj60.blogspot.com/2020/06/multi-dimensional-array2d-and-3d-in-c.html https://dheeraj60.blogspot.com/2020/06/call-by-reference-function-uses-and.html https://dheeraj60.blogspot.com/2020/06/function-call-value-uses-and-benefits.html   Let’s Discuss about Array to function. Just like variables, array can also be passed to a function as an argument as of now we used variables in functions. Passing array elements to a function is similar to passing variables to a function.   Let’s understand passing simple array in Function by below program.   #include <stdio.h> #include <stdlib.h> void value(int marks1,