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
topjm [15]
3 years ago
8

What is the output from this program? #include void do_something(int *thisp, int that) { int the_other; the_other = 5; that = 2

+ the_other; *thisp = the_other * that; } int main(void) { int first, second; first = 1; second = 2; do_something(&second, first); printf("%4d%4d/n", first, second); return (0); }
Computers and Technology
1 answer:
Ostrovityanka [42]3 years ago
7 0

Answer:

  1  35

Explanation:

* There is a little typo in printf. It should be "\n".

Initially, the value of the first is 1, and the value of the second is 2. Then, do_something(&second, first) is called. The value of the <em>first</em> will still be 1. However, there is a call by reference for <em>second </em>variable. That means the change made by the function <em>do_something</em> will affect the value of the <em>second</em> variable.

When you look at the calculation inside the <em>do_something</em> function, you may see that value of the <em>second</em> will be 35.

You might be interested in
Which is a requirement for searching for a template
Lina20 [59]

Answer:

umm... you did not discribe the anwsers, i cannot help you

8 0
3 years ago
What is the most common type of communication?
tamaranim1 [39]

Answer:

technology texting

Explanation:

omega lol

6 0
3 years ago
What type of address do computers use to find something on a network?
Leona [35]
An Internet Protocol address is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. An IP address serves two main functions host or network interface identification and location addressing which can help you a lot.
6 0
3 years ago
What year does futurist ray kurzweil believe ai will meet human intelligence?.
Paladinen [302]

Answer:

2029

Explanation:

Kurzweil claims that a machine will pass the Turing test by 2029.

3 0
3 years ago
Read 2 more answers
Fill in the blank: In a Word chart, text that describes the data represented in a chart and that is typically displayed on the r
Triss [41]

Answer:

Data bar

Explanation:

8 0
3 years ago
Other questions:
  • Which change signaled a musical progression toward rock and roll?
    14·1 answer
  • .exe, .msi, .msp, .inf - together, what do these filetypes indicate
    12·2 answers
  • You realize your computer has been infected with malware. The program has been copying itself repeatedly, using up resources. Wh
    10·1 answer
  • java Consider a class MotorBoat that represents motorboats. A motorboat has attributes for: The capacity of the fuel tank The am
    15·1 answer
  • Which software is used for cover letters and resumes
    9·2 answers
  • Which two statements are true about the Data Sync functionality? (Choose two.)
    15·1 answer
  • What factors contribute to food wastage
    12·1 answer
  • Match the different stages of boot sequence with the order in which they occur.​
    15·2 answers
  • Write a SELECT statement that returns the same result set as this SELECT statement. Substitute a subquery in a WHERE clause for
    13·1 answer
  • State and give reason, if the following variables are valid/invalid:
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!