End Google Ads 201810 - BS.net 01 --> Dear Developers,

Todays I found a surprsing fact on the scenario of functiona overlaoding in C++.

The code segment is here


#include
using namespace std;

void display( char* );
void display( const char* );

void main()
{
char *ch1 = "Hello";
const char *ch2 = "Bye";

display(ch1);
display(ch2);
}

void display( char* p )
{
cout