Object Oriented Programming - Basics Of C++

11. Consider the declarations
char a;
const char aa = 'h';
char *na;
const char *naa;
Which of the following statements
Statement I: aa = a;
Statement II: na = &a;
Statement III: na = &aa;
is/are illegal? 

Cancel reply

Your email address will not be published.


Cancel reply

Your email address will not be published.


12. Forgetting to include a file (like cmath or math.h) that is necessary will result in

Cancel reply

Your email address will not be published.


Cancel reply

Your email address will not be published.


13. Which of the following comments about inline comments are true?

Cancel reply

Your email address will not be published.


Cancel reply

Your email address will not be published.


14. At what point of time a variable comes into existence in memory is determined by its

Cancel reply

Your email address will not be published.


Cancel reply

Your email address will not be published.


15. Which of the following specifiers need not be honored by the compiler?

  • Option : D
  • Explanation : Register and inline are not compiler directives but rather request to the compiler. These requests need not be honored by the compiler.
Cancel reply

Your email address will not be published.


Cancel reply

Your email address will not be published.