fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int foo[ ] = {10, 20, 40, 50, 60, 70};
  5. int length = sizeof(foo) / sizeof(foo [0]);
  6. printf("Array length = %d\n", length);
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Array length = 6