how to declare a function in c 2b 2b

Solutions on MaxInterview for how to declare a function in c 2b 2b by the best coders in the world

showing results for - "how to declare a function in c 2b 2b"
Pia
31 Jan 2020
1// function example
2#include <iostream>
3using namespace std;
4
5int addition (int a, int b)
6{
7  int r;
8  r=a+b;
9  return r;
10}