C++ examples for Operator:Arithmetic Operator
Determine the output of the following program: integer truncation
#include <iostream> using namespace std; int main() // a program illustrating integer truncation { cout << "answer1 is the integer " << 9/4; cout << "\nanswer2 is the integer " << 17/3; return 0;//ww w .j a v a 2 s. c om }