what is c++ function
return_type function_name( parameter list ) { body of the function }
Source: www.tutorialspoint.com
what is function c++
#include <iostream> using namespace std; // declaring a function void displayNum(int n1, float n2) { cout << "The int number is " << n1; cout << "The double number is " << n2; } int main() { int num1 = 5; double num2 = 5.5; // calling the function displayNum(num1, num2); return 0; }