Liste des Groupes | Revenir à c theory |
typedef void (*ptr)();Everyone understands that DDD specifies a halting behaviour if HHH(DDD) does,
int HHH(ptr P);
void Infinite_Loop()
{
HERE: goto HERE;
}
void Infinite_Recursion()
{
Infinite_Recursion();
}
void DDD()
{
HHH(DDD);
}
int main()
{
HHH(Infinite_Loop);
HHH(Infinite_Recursion);
HHH(DDD);
}
Any input that must be aborted to prevent the non
termination of HHH necessarily specifies non-halting
behavior or it would never need to be aborted.
Les messages affichés proviennent d'usenet.