fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int* b1 = {1, 2, 3, 4};
  5. int b2[4] = {5, 6, 7, 8};
  6. int b3[] = {9, 10, 11, 12};
  7. fprintf(stdout, "b1:%u\n", sizeof(b1));
  8. fprintf(stdout, "b2:%u\n", sizeof(b2));
  9. fprintf(stdout, "b3:%u\n", sizeof(b3));
  10. return 0;
  11. }
Success #stdin #stdout 0s 10304KB
stdin
Standard input is empty
stdout
b1:8
b2:16
b3:16