fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. char *p = "abc";
  6.  
  7. printf("sizeof \"abc\"=%u\n", sizeof "abc");
  8. p[1] = 'B';
  9. printf("%s\n", p);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0.01s 1676KB
stdin
Standard input is empty
stdout
sizeof "abc"=4
abc