40. nullptr

Question.4

A generic send function uses templates:

template<typename T>
void send(T data) {
   // T is deduced from the argument
   transmit(&data, sizeof(T));
}

send(NULL);
send(nullptr);

What type is T deduced as in each call?

Need Help? Refer to the Quick Guide below

Select Answer