Hey,
I am facing strange result after running in Code::Blocks the same code as in CLion (same compiler- newest cygwin gcc):
#include <stdio.h>
int main(void)
{
char n1[100] = "Ala";
char *p;
for(p= n1; p < n1 + 10; p++)
printf("Address: %p, c: %c d: (%d)\n", p, *p, *p);
return 0;
}
In Code::Blocks result is probably wrong, 1 image. Second one is from CLion, the same compiler used and the result is the proper one (tested with friends).
Any indeas or suggestions? Thank you in advance.