1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
exis [7]
1 year ago
11

Let the function fun be defined as int fun(int *k) { *k += 4; return 3 * (*k) - 1; } Suppose fun is used in a program as follows

: void main() { int i = 10, j = 10, sum1, sum2; sum1 = (i / 2) + fun(&i); sum2 = fun(&j) + (j / 2); } What are the values of sum1 and sum2 ? ( a. if the operands in the expressions are evaluated left to right? b. if the operands in the expressions are evaluated right to left?
Engineering
1 answer:
Paraphin [41]1 year ago
3 0

The values of sum1 and sum2 if the operands in the expressions are evaluated left to right are; sum1 = 46 and sum2 = 48

<h3>How to use Operand in Programming?</h3>

In computer programming, the term operand is defined as the object of a mathematical operation or it is the object or quantity that is operated on.

A) If the operands in the expressions are evaluated left to right, then the values of sum1 and sum2 are;

sum1 = (10/2) + 41 = 46

sum2 = 41 + (14/2) = 48

B) If the operands in the expressions are evaluated right to left, then the values of sum1 and sum2 are;

sum1 = (14/2) + 41 = 48

sum2 = 41 + (10/2) = 46

Read more about about Operands at; brainly.com/question/27014457

#SPJ1

You might be interested in
What type of car engine is best for cold weather.
Komok [63]

Answer:Antifreeze/coolant

Explanation: keeps your engine cool in warm weather and keeps it from freezing up in the winter. A 50-50 mix of full strength coolant and water generally protects to around -30 degrees Fahrenheit. Make sure you check with the supplier or your owner's manual for the correct formulation

5 0
2 years ago
A master precision square is used to validate the
kumpel [21]

Answer:

me you same I didn't understand good luck

4 0
2 years ago
Nanotechnology is a scientific area that deals with making or changing things that are incredibly _______________. *
Dafna1 [17]
B tiny nano means small!!
3 0
3 years ago
Read 2 more answers
A 25-W compact fluorescent lightbulb (CFL) produces the light equivalent of a 100-W incandescent bulb. The population of North A
wariber [46]

Answer:

Coal required is 101 Teragram/year.

Coal saved is 25.25 Teragram/year.

Explanation:

1 Teragram is exactly 1000000000 kilograms.

8 0
3 years ago
The thermostat is the gauge on your dashboard for _____.
marusya05 [52]
The answer is

D. checking the engine's temperature
6 0
2 years ago
Other questions:
  • A tank contains 350 liters of fluid in which 50 grams of salt is dissolved. Pure water is then pumped into the tank at a rate of
    8·1 answer
  • assume a five layer network model. There are 700 bytes of application data. There is a 20 bye header at the transport layer, a 2
    5·1 answer
  • What does an aeronautical engineer design
    15·1 answer
  • A sample of sand weighs 490 g in stock and 475 in Oven Dry (OD) condition, respectively. If absorption capability of the sand is
    6·1 answer
  • If you stretch a rubber hose and pluck it, you can observe a pulse traveling up and down the hose. What happens to the speed of
    10·1 answer
  • Storing parts outside doesn't cause any environmental risks as long as the items are covered.
    12·2 answers
  • Can someone answer plz!! It’s 24 points
    15·2 answers
  • If Ori gives a friend three reasons for preferring soccer to basketball, that is an algorithm.
    14·2 answers
  • Zack's new home is progressing well, and the foundation work is finished. The general contractor stops by Zack's present home to
    11·1 answer
  • What is resonance as in ultrasound waves formation using magnetostriction method​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!