i have a coding assignment to mimic hash functions in c. where i hav to store student id, name ,telephone no. and hash it by telephone no. say telephone no. is 9828689999 .
i m using gcc , long int is overflowing and modulo operation is coming to b not defined on double( giving err- invalid operands to binary %)
kindly help me in choosing data type for telephone no.
thanks in advance.