Hi guys, can anyone suggest an alternative method to splitting an integer into separate digits besides using the modulus"%" and division"/" technique or using itoa() or such functions to covert it to a string and then split it. i want to do it without the aid of STL or any other library functions. You know like for instance for swaping two variables "a" and "b" we define a "temporary" variable and do the swap but we can also do it without a temporary variable using arithmetic like this:-
variable a=3,b=6
a=a*b
b=a/b;
a=a/b;
plus can anyone suggest me a site or book from which i can get these kind of alternative or better ideas to implement programs so i can change my thinking a little bit.
Thanks!