title: memory read failed for 0x600000000
body: <p>i am doing my simple C language practice on xcode Mac </p>
  
  <p>this is simple bubble sort algorithm.</p>
  
  <p>i guess there is no logical or grammar error in the codes
  but i see the error warning after debugging </p>
  
  <p>error: memory read failed for 0x600000000</p>
  
  <p>maybe this is about memory problem but i don't know what it means about 
  and how i can solve this problem without any warning messages</p>
  
  <p>P.S: i am not native english speaker. Thank you for understanding my poor english in advance :)</p>
  
  <pre><code>int p[]={0},i,j,num,temp;
  
  printf("number: ");
  scanf("%d",&amp;num);
  
  for(i=0;i&lt;num;i++)
      scanf("%d",&amp;p[i]);
  
  printf("arry numbers show-----");
  printf("\n");
  for(i=0;i&lt;num;i++)
      printf("%d ",p[i]);
  printf("\n");
  
  for(i=0;i&lt;num;i++)
  {
      for(j=0;j&lt;num-1;j++)
      {
          if(p[j]&gt;p[j+1])
          {
              temp=p[j];
              p[j]=p[j+1];
              p[j+1]=temp;
          }
      }
  }
  
  for(i=0;i&lt;num;i++)
      printf("%d ",p[i]);
  printf("\n");
  </code></pre>