Question: 1. (2 pts - 1 pt correct type, 1 pt correct initializing) Declare a character variable in C, and set it to the null character.

 1. (2 pts - 1 pt correct type, 1 pt correct

1. (2 pts - 1 pt correct type, 1 pt correct initializing) Declare a character variable in C, and set it to the null character. 2. (2 pts) Write a single statement that reads a double precision floating- point number from the keyboard. Please do NOT show the variable declaration or prompt statement for this question. 3. (2 pts) In your own words, what is a data type? Explain. 4. (6 pts) Provide each result for the following C language expressions. Numbers listed without a decimal point are considered integer values and ones with a decimal point are considered double precision floating- point values. a. -11 / -2 b. 6.2 / 2 c. -7%9 d. 10 - 5* -5 e. 5.5 - 6 / 6+ 0*2 % 45 f. 3% 3 5. (3 pts) Which C data types should be used to best represent the following? For each blank, you may list int, double, or char only. These types may be used multiple times. a. The population of the United States? b. The element symbol of potassium? C. The number of followers an individual account has on Twitter

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!