A function tries to count the items in an array it receives. What does the program print in the sandbox, where pointers are 8 bytes and int is 4 bytes?
#include <stdio.h>
int count_items(int items[]) {
return sizeof items / sizeof items[0];
}
int main(void) {
int stock[] = {3, 0, 8, 2, 5, 1};
printf("%d\n", count_items(stock));
return 0;
}