I'm learning C programming, so during writing my code, one question emerged in my head. I'm writing program which works with numbers featuring floating point, but it does not require so big mantissa as double variable provides. As far as I know, due to latest standards, C compilers automatically convert float variables to double. So I was wondering if C syntax that prohibits converting my variables defined as float, to double exist. Is it compiler defined functionality or C syntax features such conversion definition? I'm using GCC by the way, if it matters.
↧