logo

Crowdly

Browser

Add to Chrome

Which overload of Foo is selected for each call and why? #include <iostream> ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Which overload of Foo is selected for each call and why?

#include <iostream>
 void Foo(int n)  { std::cout << "int "; }void Foo(int* p) { std::cout << "ptr "; } int main(){    Foo(NULL);    // (1)    Foo(nullptr); // (2)}

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on courses.apriorit.com?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome