fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. char *str1="abcd";
  5. char str2[]="abcd";
  6. printf("%c %c\n",*str1,*str2);
  7. printf("%d %d %d\n",sizeof(str1),sizeof(str2),sizeof("abcd"));\
  8. return 0;
  9. }
Success #stdin #stdout 0.02s 2724KB
stdin
Standard input is empty
stdout
a a
4 5 5