1.

What is the role of ‘const’ modifier?

Answer»

This ‘const’ keyword is used to declare a constant. 

eg: const int bp=100; 

By this the variable bp is treated as constant and cannot be possible to change its value during execution.



Discussion

No Comment Found

Related InterviewSolutions