Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

4. What is this line of code doing? scanf("%f", height); How would you change this line if you wanted to input an Integer as opposed to a float?

4. What is this line of code doing? 

scanf("%f", &height); 

How would you change this line if you wanted to input an Integer as opposed to a float?

5. What are the values of f and g after executing the following C?

#include <stdio.h>

int main(void) {  int i,j;  float f,g;     i = 5; j = 2;  f = 3.0;  f = f + j / i;  g = (f + j )/i;

 printf("value of f,g is %f,%fn", f,g);  return 0; }

Describe specifically, and, why are the values of f and g different? Support your experimentation with a screen capture of executing the code.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question