Liste des Groupes | Revenir à c arch |
Terje Mathisen <terje.mathisen@tmsw.no> writes:result = min(max(min_range,x),max_range);David Brown wrote:>
>It would be nice if C had subrange types like Pascal or Ada, but it doe=s not.=C2=A0 Usually int - or sizeed ints - are the practical choice.
>
>
Agreed 100%
Although absent architecture support, how does one ensure that the
value remains within the subrange?
Les messages affichés proviennent d'usenet.