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
Tech distractions do NOT include _________.
likoan [24]
D, setting phone BEFORE
7 0
4 years ago
Who has good grades in school like A's B's dm me
siniylev [52]

Answer:

I do

Explanation:

4 0
3 years ago
Read 2 more answers
As temperature decreases a batteries availability power what
SSSSS [86.1K]
The answer is increases because when something like that decreases it’s always decreasing that probly makes no sense Imao but it’s increases
7 0
3 years ago
In fuel oil piping systems, all exterior above-grade fill piping shall be __________ when tanks are abandoned or removed.
castortr0y [4]

Answer:

Removed

Hope this Helps!

6 0
3 years ago
trình bày những hiểu biết cơ bản nhất về thiết bị máy chụp X-quang trong môn học trang bị điện thiết bị y tế? trên cơ sở môn học
Damm [24]

Answer:

What? What does that even mean?

8 0
3 years ago
Other questions:
  • Which of the following does NOT describe product design.
    11·1 answer
  • A heating element in a stove is designed to receive 4,430 W when connected to 240 V. (a) Assuming the resistance is constant, ca
    14·1 answer
  • If a plus sight of 12.03 ft is taken on BM A, elevation 312.547 ft, and a minus sight of 5.43 ft is read on point X, calculate t
    13·1 answer
  • 8. Air at 25C, 100 kPa and air at 50C, 200 kPa at 1 to 1 volume ratio are mixed inside an adiabatic compressor to 55C, 500 kPa a
    15·1 answer
  • The fractional_part function divides the numerator by the denominator, and returns just the fractional part (a number between 0
    10·1 answer
  • What is an unmanned space mission
    9·1 answer
  • Acquisition of resources from an external source is called?
    15·1 answer
  • Paper-like fiber clothing is intended as a one-use product. Is this statement TRUE or<br> FALSE?
    10·2 answers
  • The suction line maintains a gradual slope downward from the evaporator to the compressor in order to _____.
    5·1 answer
  • The most important reason to wear your seat belt is to protect you from:
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!