Question: Use this code to answer the table Exercises: Arithmetic operations in C In these set of exercises we will explore the interactions between the different
Exercises: Arithmetic operations in C In these set of exercises we will explore the interactions between the different types of variables and the available C operators. Create a new project and write the following code, then answer the following questions. 9 #includestdio.h> 11 int main int x, y 8 float f. char c- c,d / Charocter orithnetic d c+5; //Characterinteger, store in character printf('dXcNn", d); // Print the value of d Print the sone character as an integer printf(* Integer volue of dKd1m. d); // Does this number correspond to the .h' equivol ence in the ASCII table? // Integer and floating point arithnetic x-y 3/18+4 Integer division printf('The new value of x is: %d ", x); xy3.0/1+4 // Flooting point division printfc Whot obout now?x-Ndn, ): f-y 3/104;Integer division, store in a float printfC The value of f is: in", f-y3.0/18 4 7 Floating point division, store in a floot printf('what about now? f-%nn., f); A ne varioble printfC The value of g is: Xf. Why?in.a)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
