Answers for "how to declare a function in c++"

C++
18

how to declare a function in c++

// function example
#include <iostream>
using namespace std;

int addition (int a, int b)
{
  int r;
  r=a+b;
  return r;
}
Posted by: Guest on March-04-2020

Code answers related to "how to declare a function in c++"

Browse Popular Code Answers by Language