I am currently experiencing some difficulty when it comes to simple athrimitics in C. I am using variables that are double, so should be able to handle decimal, multiplying them and/or dividing them by another variable, also a double, and when I go to display the result using for example
I get a return of 0 instead of the number I am suppose to get. This happens is several places in my program and I can't figure out why, in some of the arithmitics I am using hex. values (ex. 0xA) but I don't see why that should make a difference.Code:printf("%d", bla)
If you can offer me any advice it would be greatly appreciated
Thanks