#include calc( void ) /* return type missing */ { /* gives return type inconsistency */ /* legal in C */ /* Illegal in C++, won't compile */ float cost = 8.0 * 5.35; return cost; } int main( void ) { float res1; res1 = calc(); printf( "%f\n", res1 ); }