Files
Cpp-in-Embedded-Systems/Chapter06/function_overloading.cpp
Amar Mahmutbegovic 0ea2c43f45 add Chapter06
2025-05-08 23:03:25 +02:00

18 lines
202 B
C++

#include <cstdio>
void print(int a) {
printf("Int %d\r\n", a);
}
void print(float a) {
printf("Float %2.f\r\n", a);
}
int main() {
print(2);
print(2.f);
return 0;
}