integer and double adding


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]

Posted by Gustavo Moura on September 26, 2001 at 15:37:42:

When I add a double and an integer, for example 1.5+2, does anyone know if the result will be given as a double (3.5) or an integer (3)??
it doesn't say anywhere in the text notes whether or not C++ actually makes such convertion... thanks!


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]