Vidyalelo
C++ Programming · Q75

Variables and Data Types in C++

Programming · C++ Programming · question 75

Q75

What will be the output of the following C++ code? #include using namespace std; int main() int num = 0x20 + 020 + 20; cout << sizeof(num)<<' '; return 0;

A.
2
B.
4
C.
Depends on compiler
Answer
D.
Garbage

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board