Day 15 Recap Questions
  1. What is two’s complement representation?
  2. How does representation of integers and floating-point values differ in C?
  3. What is type narrowing?
  4. What is type promotion?
  5. What is type casting?
  6. What is the output of the code segment below?

     int n = 32065;
     float x = 24.79;
     printf("int n = %d but (char) n = %c\n", n, (char) n);
     printf("float x = %f but (long) x = %ld\n", x, (long) x);
    
  7. Given the variables above, write an expression to store the value of half of n plus ten times x truncated to a whole number into variable long result;. You can only use the literal values 2 and 10 in your solution.