function overloading problem

        So why void func(int a); void func(const int a); is not function overloading? one
        void func(int* a); void func(int* const a); //not function overloading II
        void func(int* a); void func(const int* a); // is function overloading 3
        1. The variable a is modified by const; so these two types are the same, not function overloading;
        2. The variable a is modified by const; so these two types are the same, not function overloading;
        3. const modifies the int type, not the variable a, so the two types are different and are function overloading;

 So only three of them satisfy the function overloading condition, and two of them are overloaded functions.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324833588&siteId=291194637