Evaluate these expressions, expressions should be in code C 1 + 2 / 5 1.0 + 2 / 5(up to 1 decimal digit) 1 + 2.0 / 5 1 + (float) 2 / 5 (float) 1 + 2 / 5(up to 1 decimal digit) int xa[5] = {1,2,3,4,5};Evaluate xa[3] float x = 2.3; x+=5.0; Evaluate x If a=2 and b=-3 , evaluate: (a<b) ? a : b 2 == 3

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter2: Using Data
Section: Chapter Questions
Problem 17RQ: When you perform arithmetic operations with operands of different types, such as adding an int and a...
icon
Related questions
Question

Evaluate these expressions, expressions should be in code C

  1. 1 + 2 / 5
  2. 1.0 + 2 / 5
    (up to 1 decimal digit)
  3. 1 + 2.0 / 5
  4. 1 + (float) 2 / 5
  5. (float) 1 + 2 / 5
    (up to 1 decimal digit)
  6. int xa[5] = {1,2,3,4,5};
    Evaluate xa[3]
  7. float x = 2.3; x+=5.0;

    Evaluate x

  8. If a=2 and b=-3 , evaluate:

    (a<b) ? a : b
  9. 2 == 3
Expert Solution
steps

Step by step

Solved in 1 steps

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr