1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
void average(double arr[6])
{
printf("In Function, Size of Array: %zd\n", sizeof(arr));
}
int main()
{
double arr1[] = {0,1,2,4};
double arr2[] = {0,1,2,3,4,6};
printf("Out side, Size of Array1: %zd\n", sizeof(arr1));
printf("Out side, Size of Array2: %zd\n", sizeof(arr2));
// average(arr1);
// average(arr2);
}
Enter to Rename, Shift+Enter to Preview