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