M
Mark
Hello,
consider the following snippet:
struct foo_struct {
int a;
int b;
};
struct foo_struct *foo;
struct foo_struct foo_global;
int foo(int x)
{
....
return 0;
}
int main(void)
{
foo = &foo_global;
...
}
So I have two identifiers but for diferent objects (is it correct to call
function as object?). Is this stricly illegal, or the standard defines such
case as "undefined behavior". What part of the standard describe this?
Thanks.
consider the following snippet:
struct foo_struct {
int a;
int b;
};
struct foo_struct *foo;
struct foo_struct foo_global;
int foo(int x)
{
....
return 0;
}
int main(void)
{
foo = &foo_global;
...
}
So I have two identifiers but for diferent objects (is it correct to call
function as object?). Is this stricly illegal, or the standard defines such
case as "undefined behavior". What part of the standard describe this?
Thanks.