filmov
tv
C46. Passing Entire Array to function in C | Passing 1D array to function

Показать описание
In this video, we are going to discuss how to pass arrays to functions in C.
Summary:
- To pass entire array, just pass base address (0th element address) and array size
Eg:
print(&marks[0],size);
void print(int *j,int size)
- Base address can also be passed by just passing name of the array.
print(marks,size);
void print(int j[],int size)
- Array is always passed by reference.
Audio language : Hindi
In this course , we are going to cover all C concepts in simple and easy to understand terms.
This course will start from basics and later on we will cover advance topics that are important from interview point of view.
Programs :
Summary:
- To pass entire array, just pass base address (0th element address) and array size
Eg:
print(&marks[0],size);
void print(int *j,int size)
- Base address can also be passed by just passing name of the array.
print(marks,size);
void print(int j[],int size)
- Array is always passed by reference.
Audio language : Hindi
In this course , we are going to cover all C concepts in simple and easy to understand terms.
This course will start from basics and later on we will cover advance topics that are important from interview point of view.
Programs :