fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main()
  5. {
  6. char str[] = "Joeffrey Biccay";
  7.  
  8. printf("%d\n", sizeof(char));
  9. printf("%d\n", sizeof(char*));
  10. printf("%d = %d\n",((1+strlen(str))*sizeof(char)),sizeof(str));
  11. return 0;
  12. }
  13.  
  14.  
  15.  
Success #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
1
4
16 = 16