Quantcast
Viewing all articles
Browse latest Browse all 22225

prohibiting float to double conversion

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.


Viewing all articles
Browse latest Browse all 22225

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>