Source |
CodingSec |
Identifiant |
8046 |
Date de publication |
2016-08-16 18:00:54 (vue: 2016-08-16 18:00:54) |
Titre |
Most Important frequently asked C++ interview questions |
Texte |
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++??
|
Envoyé |
Oui |
Condensat |
25u 32bit 4294967271 50; another answer appeared are article asked below c++ can code coding compiler cout diamond differ double first float frequently from generally going higher important int interview just line long lower most not occur one operands out post print problem promoted question questions security some taking two types unsigned well what which why will |
Tags |
|
Stories |
|
Notes |
|
Move |
|