2 ms·
Due to the way lifetimes work in C (they begin with the block, not the declaration), the following is legal: #include <stdio.h> #include <stddef.h> int
by o11c 2y ago
Due to the way lifetimes work in C (they begin with the block, not the declaration), the following is legal:
#include <stdio.h>
#include <stddef.h>
int main()
{
{
int *p = NULL;
if (p)
{
what:
printf("a = %d\n", *p);
return 0;
}
int a = 123;
p = &a;
goto what;
}
}