Sail E0 Webinar
Question

What can be passed by non-type template parameters during compile time?


Options:
A .  int
B .  float
C .  constant expression
D .  none of the mentioned
Answer: 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.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers