Home » C++ Programming » Templates » Question
  1. What can be passed by non-type template parameters during compile time?
    1. constant expression
    2. float
    3. int
    4. All of above
    5. None of these
Correct Option: C

Non-type template parameters provide the ability to pass a constant expression at compile time. The constant expression may also be an address of a function, object or static class member.



Your comments will be displayed only after manual approval.