For a function whose return type is deduced at the time of its invocation, the keyword ______ is used.

  • deduce
  • infer
  • decltype
  • auto
For a function whose return type is deduced at the time of its invocation, the keyword 'auto' is used. This is part of the C++11 feature where the compiler determines the return type based on the function's implementation. It allows for more flexible and concise code.
Add your answer
Loading...

Leave a comment

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