Expert C++
上QQ阅读APP看书,第一时间看更新

Questions

  1. How many parameters does the main() function have?
  2. What is the constexpr specifier used for?
  3. Why is it advised to use iteration over recursion?
  4. What's the difference between the stack and the heap?
  1. What is the size of the ptr if it is declared as int*?
  2. Why is access to an array element considered a constant time operation?
  3. What will happen if we forget the break keyword in any case of the switch statement?
  4. How would you implement the multiply() and divide() functions from the arithmetic operations example as lambda expressions?