fork download
  1. #include<stdio.h>
  2. int main(){
  3. char *a = "America"; // Here, a is character pointer
  4. char b[] = "German"; // Here, b is character array
  5. printf("size of a = %ld\n",sizeof(a));
  6. printf("size of b = %ld\n",sizeof(b));
  7. }
  8.  
Success #stdin #stdout 0.01s 5448KB
stdin
Standard input is empty
stdout
size of a = 8
size of b = 7