Modernes C++ programmieren

Okt 23, 2024

lst-0144-book.cpp

// https://godbolt.org/z/evGqG1oqa 
int verdopple(int a) { return a * 2; }
double verdopple(double a) { return a * 2.0; }
int main() {
    int x = verdopple(7);
    double y = verdopple(7.0);
}