fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. static char a [] = "Bombay"; char *b = "Bombay"; printf ("Size of a [] %d\n", sizeof(a)); printf ("Size of ptrb %x\n", sizeof(b)); return 0;
  5. return 0;
  6. }
  7.  
Success #stdin #stdout 0s 10304KB
stdin
Standard input is empty
stdout
Size of a [] 7
Size of ptrb 8