Function overloading in C++

Source code :

#include <iostream>
using namespace std;
void num(int);
void num(float);
void num(int, float);
int main() {
    int x = 5;
    float y = 5.5;
    num(x);
    num(y);
    num(x, y);
    return 0;
}
void num(int i) {
    cout<<"Integer number: "<<i<<endl;
}
void num(float f){
    cout<<"Float number: "<<f<<endl;
}
void num(int i, float f) {
    cout<<"Integer number is "<<i<<" and float number is "<<f;
    
}

Output :

0

Output :


                

Comments :