fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. int main(void)
  5. {
  6. double b[10];
  7. b[0]=0;
  8. printf("How many elements the array contains : %d\n" , sizeof(b) / sizeof(b[0]));
  9. return 0;
  10. }
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
How many elements the array contains : 10