Home / CSE MCQs / C++ - MCQs :: Discussion

Discussion :: C++ - MCQs

  1. What can be passed by non-type template parameters during compile time?
  2. A.
    int
    B.
    float
    C.
    constant expression
    D.
    none of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    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.


Be The First To Comment