Dividing one integer by another integer in C++ may not give you the result you are expecting.  Explain, including an example, what occurs in C++ when one integer is divided by another integer.

What will be an ideal response?

Answers may vary due to the example given.

When both the dividend and divisor are integers, the quotient is always an integer in C++.  For example, the result of the expression 24 / 5 is the integer 4 rather than the real number 4.8.

Computer Science & Information Technology

You might also like to view...

When data is imported into Excel from Access, a(n) ________ connection is created

A) temporary B) automatic C) conditional D) permanent

Computer Science & Information Technology

A ________ key is a field that is the primary key in another table

Fill in the blank(s) with correct word

Computer Science & Information Technology