What is wrong in const int y;

Q27. What is wrong with the following statement?
const int y;

Ans. y being a constant is not initialized. Correct version is

const int y=5;

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: