0 votes 0 votes what is function in c pragramming to take mod of number in c ie. |-15|=15 Nilu asked Mar 14, 2016 Nilu 538 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 8 votes 8 votes abs function SYNOPSIS #include <stdlib.h> int abs(int j); long int labs(long int j); long long int llabs(long long int j); Arjun answered Mar 14, 2016 • selected Mar 14, 2016 by Pooja Palod Arjun comment Share Follow See all 0 reply Please log in or register to add a comment.
4 votes 4 votes You can always design your own, int mod(int num){ if(num<0) return -num; else return num; } rude answered Mar 22, 2016 rude comment Share Follow See all 0 reply Please log in or register to add a comment.