Type conversions - overview
- Politechnika Śląska
- Fundamentals of Computer Programming
Type conversions • Problem: different types of operands • Solution: conversion to a common type according to a small number of rules. double x, y; int k; y = x + k; • The only automatic conversions are those that convert a ''smaller'' operand into...