int main(int argc, char **argv)
{
int *p;
{
int i = 5;
p = &i;
}
*p = 6;
return 0;
}
will the declared variable i be deallocated after the duration of those brackets? If so, is it just a coincidence that this code doesn't produce a segfault?
will the declared variable i be deallocated after the duration of those brackets? If so, is it just a coincidence that this code doesn't produce a segfault?