In this article we are going to some of the most important and frequently asked interview questions. Question 1 What will the line of code below print out and Why? cout << 25u - 50; Well the Answer is just not -25. The answer is 4294967271, taking the compiler is 32bit. There are two types of operands in C++ which one differ from another generally the lower types will be promoted to higher types Higher types : long double, double, long int Lower types : unsigned int, int, float Question 2 What is diamond problem that can occur with C++??
The post Most Important frequently asked C++ interview questions appeared first on Coding Security.
Most Important frequently asked C++ interview questions
read more
Tidak ada komentar:
Posting Komentar