AI Features

String Theory

Test your C++ programming skills by solving the given puzzle about function overloading.

We'll cover the following...

Puzzle code

...
#include <iostream>
#include <string>
void serialize(const void*) { std::cout << "const void*"; }
void serialize(const std::string&) { std::cout << "const string&"; }
int main()
{
serialize("hello world");
}
...
Ask