Code: Select all
const int Values[] = {1,2,3,4,5};
void main(){
int *ptr;
ptr = &Values;
}
#2 Post by rajkovic » 03 Mar 2011 07:39
It should not give error, we will fix this.Toley wrote:Can someone tell me why this give an error ?
Code: Select all
const int Values[] = {1,2,3,4,5}; void main(){ int *ptr; ptr = &Values; }
Code: Select all
const int Values[] = {1,2,3,4,5};
void main(){
int *ptr;
ptr = (int*)&Values;
}
Return to “mikroC PRO for PIC32 General”