66. constexpr-i

Question.3

A developer writes a constexpr function to compute a baud rate divisor:

constexpr uint32_t baud_div(uint32_t clk, uint32_t baud) {
   return clk / baud;
}

constexpr uint32_t DIV = baud_div(16000000, 115200);

When is the division performed?

Need Help? Refer to the Quick Guide below

Select Answer