The Database Managers, Inc.

Contact The Database Managers, Inc.


Use an RSS enabled news reader to read these articles.Use an RSS enabled news reader to read these articles.

Language Lawyer in a C++ Job Interview

by Curtis Krauskopf

Language Lawyer questions involve C++ language issues that are typically not seen in day-to-day programming projects. The questions might probe dark corners of the language definition or areas that are supported differently between different popular compilers.

  1. Show an example of a valid C program that fails to compile in C++.
  2. Show an example of a valid C program that compiles cleanly in C++ but gives a different result.
  3. Why won't this compile?
    for (int i = 0; i < 10; i++) {
      for (int k = 0; k < 10; k++) {
        if (e == 0) goto next_i;
      }
      next_i;
    } 
    

  4. A placement new exists in the C++ language. Is there a "placement delete"?
Previous Questions More C++ Questions
Jump to Questions Page:  1  2  3  4  5  6  7  8  9  10  11  12  13 
 
Jump to Answers Page:  1  2  3  4  5  6  7  8  9  10  11  12  13 
Services | Programming | Contact Us | Recent Updates
Send feedback to: