I would like to pass array as an argument to function Blink and print out each element; however variable count from Blink function returns 1 as a number of elements in array H
int main(){ int H[] = {1,2,3,4,5,6,7,8,9}; Blink(H);}
void Blink(int myArray[]){
int count = sizeof(myArray)/sizeof(myArray[0]);
printf("Size of the array is %d\n", count);
for(int x=0; x<count; x++){
printf("%d ", myArray[x]);
}
printf("\n");
}
Please, suggest where is a mistake and how can i fix it?