RosettaCodeData/Task/Documentation/C/documentation.c

14 lines
270 B
C

/**
* \brief Perform addition on \b a and \b b.
*
* \param int One of the numbers to be added.
* \param int Another number to be added.
* \return The sum of \b a and \b
* \code
* int sum = add(1, 2)
* \endcode
*/
int add(int a, int b) {
return a + b;
}