RosettaCodeData/Task/Documentation/C/documentation.c

14 lines
270 B
C
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
/**
2015-11-18 06:14:39 +00:00
* \brief Perform addition on \p a and \p b.
2013-04-10 16:57:12 -07:00
*
2015-11-18 06:14:39 +00:00
* \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.
2013-04-10 16:57:12 -07:00
* \code
2015-11-18 06:14:39 +00:00
* int sum = add(1, 2);
2013-04-10 16:57:12 -07:00
* \endcode
*/
int add(int a, int b) {
return a + b;
}