logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Explain one-definition rule (ODR).


  • Correct Answer
  • According to one-definition rule, C++ constructs must be identically defined in every compilation unit they are used in As per ODR, two definitions contained in different source files are called to be identically defined if they token-for-token identical The tokens should have same meaning in both source files Identically defined doesn?t mean character-by-character equivalence Two definitions can have different whitespace or comments and yet be identical 


  • Technology problems


    Search Results


    • 1. What is mandatory for designing a new container?

    • Options
    • A. Classes
    • B. Iterators
    • C. Container
    • D. None of these
    • Discuss
    • 2. What do vectors represent?

    • Options
    • A. Static arrays
    • B. Dynamic arrays
    • C. Stack
    • D. Queue
    • Discuss
    • 3. To which type of class, We can apply RTTI?

    • Options
    • A. Encapsulation
    • B. Polymorphic
    • C. Derived
    • D. None of these
    • Discuss
    • 4. Which operator is used in catch-all handler?

    • Options
    • A. ellipses operator
    • B. ternary operator
    • C. string operator
    • D. unary operator
    • Discuss
    • 5. What is meant by exception specification?

    • Options
    • A. A function is limited to throwing only a specified list of exceptions.
    • B. A catch can catch all types of exceptions.
    • C. A function can throw any type of exceptions.
    • D. none of the mentioned
    • Discuss
    • 6. What are the advantages of using friend classes?
    • Discuss
    • 7. .What are Stacks? Give an example where they are useful.
    • Discuss
    • 8. Exlpain STL.
    • Discuss
    • 9. What is a Wrapper class?
    • Discuss
    • 10. What do you mean by stack unwinding?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment