Hi all,
I have some theoritical questions.
1. Why sometimes any piece of code works fine in th debug version and fails in the release version ?
could anyone please state the difference between relase and debug version?
2. int *ptr[10]; //10 pointers pointing to an integer
what happens if we do ptr++ ?What should I do if I want to acess all the pointers?
int(*ptr)[10]; //pointer pointing to an array of integers
what happenes if we do ptr++ here ?Can I do it?
Need little bit explanation about it.
Thanks
I have some theoritical questions.
1. Why sometimes any piece of code works fine in th debug version and fails in the release version ?
could anyone please state the difference between relase and debug version?
2. int *ptr[10]; //10 pointers pointing to an integer
what happens if we do ptr++ ?What should I do if I want to acess all the pointers?
int(*ptr)[10]; //pointer pointing to an array of integers
what happenes if we do ptr++ here ?Can I do it?
Need little bit explanation about it.
Thanks
Comment