fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int ar_int[10];
  5. char ar_char[10];
  6. int s_int = sizeof(ar_int);
  7. int s_char = sizeof(ar_char);
  8.  
  9. printf("sizeof (int [10]) = %d", s_int);
  10. printf("sizeof (char [10]) = %d", s_char);
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
sizeof (int [10]) = 40sizeof (char [10]) = 10