vendredi 19 octobre 2018

when different data types are used in a c++ expression like : a + b – c * d [duplicate]

This question already has an answer here:

what will the data type of the following code:

std::cout<<a + b – c * d

If the types of a, b, c, and d are int, long int, float, and double respectively, then the type of the expression is:(i.e what will be the data type in the end)

eg: int, long int, float double.

Aucun commentaire:

Enregistrer un commentaire