Predict the output?
(C) Compiler Error
Explanation: In Java, member variables can assigned a value with declaration. In C++, only static const variables can be assigned like this.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.