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]
2 years 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]2 years 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
In which type of shoot is continuous lighting used?
Fiesta28 [93]

A type of shoot in which continuous lighting used is: 1) studio.

<h3>What is a photoshoot?</h3>

A photoshoot simply refers to a photography session which typically involves the use of digital media equipment such as a camera, to take series of pictures (photographs) of models, group, things or places, etc., especially by a professional photographer.

<h3>The types of shoot.</h3>

Basically, there are four main type of shoot and these include the following:

  • Studio
  • Underwater
  • Action
  • Landscape

In photography, a type of shoot in which continuous lighting used is studio because it enhances the photographs.

Read more on photography here: brainly.com/question/24582274

#SPJ1

4 0
2 years ago
What is the relationship of waste management and bioremediation?
andriy [413]

Answer:

In the simplest terms, bioremediation is a waste management process using live organisms to neutralize or remove harmful pollutants from contaminated areas. Bioremediation is an environmental science that amplifies natural biological actions to remedy or remediate polluted groundwater and contaminated soil.

Explanation:

4 0
3 years ago
Read 2 more answers
Wattage is:
Ksju [112]

Answer:

c.Both A and B.

Explanation:

the wattage is c and d

7 0
3 years ago
Hey answr this sajida Yusof
Allisa [31]
What do u need? Rusbaisuwvwbs
5 0
3 years ago
Read 2 more answers
Chemical engineering got is unofficial start around the time of the __________ __________ ________.
Gre4nikov [31]

Answer:

Option A,  World War II

Explanation:

During the period of industrial revolution around 1915-25, the chemical engineering has taken a new shape. During this period (i.e around the world war I), there was rise in demand for  liquid fuels, synthetic fertilizer, and other chemical products. This lead to development of chemistry centre in Germany . There was rise in use of synthetics fibres and polymers. World war II saw the growth of catalytic cracking, fluidized beds, synthetic rubber, pharmaceuticals production, oil & oil products, etc. and because of rising chemical demand, chemical engineering took a new shape during this period

Hence, option A is the right answer

4 0
3 years ago
Other questions:
  • On a piece of paper, sketch the x-y stress state and the properly oriented principal stress state. Use the resulting sketch to a
    5·1 answer
  • What is Differential Analysis in fluid mechanics?
    13·1 answer
  • A 150-lbm astronaut took his bathroom scale (a spring scale) and a beam scale (compares masses) to the moon where the local grav
    13·1 answer
  • Which engineers are requried to have a PE (professional engineer) license?
    13·2 answers
  • Which allows a user to run applications on a computing device? Group of answer choices Application software CSS Operating system
    11·1 answer
  • 1. What's the maximum overall length of the part?<br> 2. What material is used to fabricate the part
    5·1 answer
  • La iluminación de la superficie de un patio amplio es 1600 lx cuando el ángulo de elevación del sol 53°. Calcular la iluminación
    15·1 answer
  • An ocean thermal energy conversion system is being proposed for electric power generation. Such a system is based on the standar
    5·1 answer
  • Which of the following relationship types most closely resembles the relationship between the national importance of residential
    15·1 answer
  • PLEASE HELP QUICK!!
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!