Question.1
Two developers define a callback type:
Developer A -- typedef:
typedef void (*Callback)(int, int);
Developer B -- using:
using Callback = void (*)(int, int);
Are these equivalent?
Select Answer
No -- typedef creates a new type; using creates an alias
typedef
using
Yes -- both create the same type alias, but using has clearer left-to-right syntax
No -- using only works with simple types, not function pointers
Yes -- but using only works in C++17 and later