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
umka21 [38]
3 years ago
11

Write a function call with arguments tensPlace, onesPlace, and userInt. Be sure to pass the first two arguments as pointers. Sam

ple output for the given program: tensPlace = 4, onesPlace = 1
Engineering
1 answer:
Trava [24]3 years ago
4 0

Answer:

#include <stdio.h>

void SplitIntoTensOnes(int* tensDigit, int* onesDigit, int DecVal){

  *tensDigit = (DecVal / 10) % 10;

  *onesDigit = DecVal % 10;

  return;

}

int main(void) {

  int tensPlace = 0;

  int onesPlace = 0;

  int userInt = 0;

  userInt = 41;

  SplitIntoTensOnes(&tensPlace, &onesPlace, userInt);

  printf("tensPlace = %d, onesPlace = %d\n", tensPlace, onesPlace);

  return 0;

}

You might be interested in
Establishes general guidelines concerning licensing and vehicle
gavmur [86]

Answer:

A. National Highway Safety Act

Explanation:

The National Highway Safety Act establishes general guidelines concerning licensing, vehicle registration and inspection, and traffic laws for state regulations. The act was made in 1966 to reduce the amount of death on the highway as a result of increase in deaths by 30% between 1960 and 1965

National Traffic and Motor Vehicle Safety Act regulates vehicle manufacturers  by ensuring national safety standards and issuance recalls for defective vehicles

Uniform Traffic Control Devices Act  defines shapes, colors and locations for road signs, traffic signals, and road markings

5 0
3 years ago
Read 2 more answers
What are the three elementary parts of a vibrating system?
zhenek [66]

Answer:

the three part are mass, spring, damping

Explanation:

vibrating system consist of three elementary system namely

1) Mass - it is a rigid body due to which system experience vibration and kinetic energy due to vibration is directly proportional to velocity of the body.

2) Spring -  the part that has elasticity and help to hold mass

3) Damping - this part considered to have zero mass and  zero elasticity.

7 0
3 years ago
Which statement about lean manufacturing is true when you compare it to mass production?
Len [333]
Where are the statements then bbs lol
6 0
3 years ago
True or false It is legal to pass in Florida when approaching within 100 feet of or traversing any railroad crossing grade croea
Iteru [2.4K]
That is a false statement.
3 0
3 years ago
Steam enters a steady-flow adiabatic nozzle with a low inlet velocity (assume ~0 m/s) as a saturated vapor at 6 MPa and expands
Sergio [31]
Yea bro I don’t really know
7 0
2 years ago
Other questions:
  • True or False: Drag and tailwind are examples of a contact force.<br> tyy guyss
    14·1 answer
  • Is air conditioner a refrigerator?
    10·1 answer
  • The ampere draw of a 5000 watt electric heater used on 120 volts is
    12·1 answer
  • The typical Canadian worker is able to produce 100 board feet (a unit of measure) of lumber or 1000 light bulbs per year. The wo
    12·1 answer
  • Some General Motors flex fuel vehicles do not use a fuel sensor to measure the percentage of ethanol in the fuel. These vehicles
    5·1 answer
  • What is it that makes a battery rechargeable? How is it different from a regular battery?
    14·2 answers
  • A steam power plant with a power output of 230 MW consumes coal at a rate of 60 tons/h. If the heating value of the coal is 30,0
    5·1 answer
  • New ventures that are based on strategic value, such as valuable technology, are attractive while those with low or no strategic
    12·2 answers
  • Your duty is to construct the above circuit and change Potentiometer resistance until you see 1v 2v……12v at the output voltage w
    6·1 answer
  • How many and what type of<br> receptacles are connected to<br> this circuit?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!