Horje
function overloading in c++ Code Example
function overloading in c++
#include <iostream>
using namespace std;
 
void print(int i) {
  cout << " Here is int " << i << endl;
}
void print(double  f) {
  cout << " Here is float " << f << endl;
}
void print(char const *c) {
  cout << " Here is char* " << c << endl;
}
 
int main() {
  print(10);
  print(10.10);
  print("ten");
  return 0;
}




Cpp

Related
c++ hours minutes seconds Code Example c++ hours minutes seconds Code Example
how print fload wiht 3 decimal in c++ Code Example how print fload wiht 3 decimal in c++ Code Example
c++ map iterator Code Example c++ map iterator Code Example
switch case with string c++ Code Example switch case with string c++ Code Example
how to use string variable in switch case in c++ Code Example how to use string variable in switch case in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8