Interviewer And Interviewee Guide

C++ Operator Overloading Interview Question:

What is the output of this program?

#include <iostream>
using namespace std;
int main()
{
double a = 21.09399;
float b = 10.20;
int c ;
c = (int) a;
cout << c ;
c = (int) b;
cout << c ;
return 0;
}
a) 2110
b) 1210
c) 21
d) None of the mentioned

Submitted by: Administrator
a) 2110
Submitted by:

Read Online C++ Operator Overloading Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.