fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int arr[] = {1, 2, 3, 4, 5};
  5. size_t size = ( (char *)(&arr + 1) - (char *) (&arr) ) / sizeof arr[0];
  6. printf("%zu\n", size);
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
5