Liste des Groupes | Revenir à c theory |
int sum(int x, int y) { return 5; }It is, however, a computable (albeit trivial and poorly-named) function.
Is NOT a Turing Computable function for the sum of two integers.
int sum(int x, int y) { x + y; }Not quite. It's a computable function for the sum of two integers, both of which are in the range INT_MIN to INT_MAX, and whose sum is also within that range. sum(INT_MAX, INT_MAX) doesn't calculate what you claim, but merely invokes undefined behaviour.
Is a Turing Computable function for the sum of two integers.
Les messages affichés proviennent d'usenet.