C Programming/Variables/Quizes
< C Programming | Variables
Question 1
editList all the native C types. State whether they store integer or floating point data.
Question 2
editDeclare an integer with the name totalMoney.
Question 3
editWhat storage type would you use for the following ideas?
- The area of a triangle?
- The number of people in the United States?
- The average number of people living in a house?
- The amount of money in your wallet?
- The number of hours you worked last week?
Question 4
editWhat real types would you use for those variables?
Question 5
editWhat names would you use to describe them?
Question 6
editWhat are the values of x, y, and z after each line of the following code?
- int x,y,z;
- x=7;
- y=2*x+5;
- z=y+x;
- x=9;
- z=x-8;