fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char c1[] = "hello";
  5. char c2[] = {'h','e','l','l','o'};
  6. printf("%s\n",c1);
  7. printf("%s\n",c2);
  8. printf("%d\n",sizeof(c1));
  9. printf("%d\n",sizeof(c2));
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
hello
helloV
6
5