study/C_C++/sources/c_and_pointer/chapt2/practise/negate.c

11 lines
104 B
C

#include <stdio.h>
/**
*
* 返回该数的负值
*/
int negate1 ( int num )
{
return 0 - num;
}