Ok for one of my questions for my C homework I have to answer the following question:
1. What is the value of the following expression in C? Assume a=5, b=7, c=3.2, d=5.0.
a,b=int
c,d,e=double
e=b/a*c+c*d
The thing about that is i dont know what doubles and ints do to numbers, so i cant solve it. If someone could explain what the doubles and ints do then maybe I can get it. Also, I dont understand what a char does so maybe someone can explain that too. Oh yeah I also dont understand what things like %lf, %c etc do.
1. What is the value of the following expression in C? Assume a=5, b=7, c=3.2, d=5.0.
a,b=int
c,d,e=double
e=b/a*c+c*d
The thing about that is i dont know what doubles and ints do to numbers, so i cant solve it. If someone could explain what the doubles and ints do then maybe I can get it. Also, I dont understand what a char does so maybe someone can explain that too. Oh yeah I also dont understand what things like %lf, %c etc do.