[SJF Logo]Unixwiz.net - Software Consulting Central
"Usual C Conversions" Wizard

This program takes two C data types and shows the "usual conversions" that would be applied to them and shows the ultimate data types that are operated upon. Every binary operation performs "the usual conversions" until both operands have the same type - this is a kind of type promotion.

Sometimes the conversions are obvious, sometimes they are not, and many of them depends on the sizes of the integral data types and whether this is an ANSI/ISO compiler or not.

Parameter #1
operator Parameter #2

Size of short: bits
Size of int: bits
Size of long: bits
Language type: ISO C
Traditional


[Home] * Stephen J. Friedl * Software Consultant * Tustin, California USA *