Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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;
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #declare #function
ADD COMMENT
Topic
Name
2+2 =