Vidyalelo
C++ Programming · Q118

Variables and Data Types in C++

Programming · C++ Programming · question 118

Q118

What will be the output of the following C++ code? #include using namespace std; int g = 100; int main() int a; int b; b = 20; a = 35; g = 65; cout << b << a << g; a = 50; cout << a << g; return 0;

A.
2035655065
Answer
B.
2035655035
C.
2035635065
D.
2035645065

Answer: Option A

Solution

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