fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. char d1[100] = "aaa";
  5. printf( "%zu\r\n", sizeof(d1) ) ; // 100
  6.  
  7. char *d2 = "aaa";
  8. printf( "%zu\r\n", sizeof(d2) ) ; // 8
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 4524KB
stdin
Standard input is empty
stdout
100
8