Select the correct option to test your answer:
Computer
Operators And Expressions In C Plus Plus
Difficulty: Medium
What will be the output of the following C++ code? #include <iostream> using namespace std; main() { double a = 21.09399; float b = 10.20; int c ,d; c = (int) a; d = (int) b; cout << c <<' '<< d; return 0; }
More Computer Questions
What is the purpose of NiFi's "ConvertRecord" processor?
What is the difference between a class-based decorator and a function-based decorator?
What will happen when a programs throws any other type of exception other than specified?
What will be the output of the following C++ code? #include <iostream> #include <deque> using namespace std; int main () { unsigned int i; deque<int> a (3,100); deque<int> b (5,200); a.swap(b); cout << "a contains:"; for (deque<int>::iterator it = a.begin(); it != a.end(); ++it) cout << ' ' << *it; cout << "b contains:"; for (deque<int>::iterator it = b.begin(); it != b.end(); ++it) cout << ' ' << *it; return 0; }
The microelectronics is the technology of