Is there any speed difference in accessing a static and a dynamic array ?
e.x.
Code:int *array1 = malloc(100*sizeof(int)); for(i=0;i<100;i++) printf("%d\n",array1[i]);
Maybe the speed difference is too little and the only case to see it, is when the loop is giant.Code:int array2[100]; for(i=0;i<100;i++) printf("%d\n",array2[i]);