I have a theoretical question about these two statements:
Assuming a ppointer to an Integer and aan integer:
a) if(p==a){.....}or if(p>a)..
b) p=a;
They are all illegal and bespecially dangerous, but how does the C standard treat them?
Reading the standard, I did not find whether they are errors, undefined behavior, undefined behavior, violation of restrictions, if one of them is legal or the other.
In countless similar questions, I did not find a solution.
source
share