#include <stdio.h>
as you can see above almost I have the same definitions but one doesn't give me an error and other one it does... WHY?Code:int main(){ int a[10]; int *pa = a; //this is OK but... *pa = a; //this is EXC_BAD_ACCESS /* (EXC_BAD_ACCESS is telling you is that you are attempting to reference a pointer that is no longer valid. */ //WHY? }



LinkBack URL
About LinkBacks


