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
KonstantinChe [14]
3 years ago
8

What is the output of the following program segment? int main() { int num = 5; cout << num <<" "; change(num); cout

<< num << endl; return 0; } void change (int &num) { num = 10; }
Computers and Technology
1 answer:
11Alexandr11 [23.1K]3 years ago
6 0

Answer:

The output of the given C++ language code is as follows:

Output:

5 10

Explanation:

Description of the given C++ language code as follows:

  • In this code, the main method is defined inside the main method an integer variable num is declared that contains a value that is "5".
  • In this method first, a variable value is printed then a function that is "change" is called then we print function value.
  • In the last, a change method is defined, which contains an integer variable "num" in its parameter, and inside a function num variable another value is defined, that is 10, that's why the first 5 and then 10 value is printed.

You might be interested in
In Interactive Charting, which chart type allows you to chart the current spread between a corporate bond and a benchmark govern
harkovskaia [24]

Answer:

c. Bond Spread

Explanation:

An interactive chart is used to show all the details in the chart and the user can extend or shrink the details that is presented in the charts by using the slider control.

The bond spread in an interactive is a chart that is used to compare and chart the current spread between the corporate bond as well as the benchmark government bond.

8 0
3 years ago
Which of the following best describes how computing devices represent information? A. A computer will either represent informati
lana66690 [7]

Answer:

The Answer is B

Explanation:

The reason the answer is B is because "bytes" are the correct form of storing memory in 0's and 1's.

5 0
3 years ago
Read 2 more answers
8.17 Lab: Strings of a Frequency Write a program that reads whitespace delimited strings (words) and an integer (freq). Then, th
WITCHER [35]

Answer:

def wordsOfFreqency(words, freq):

 text1 = "Apple apPLE mangO aPple orange Orange apple guava Mango mango"

 words = []

 words1 = []

 words1 = text1.split()

 words = [x.upper() for x in words1]

 freq=[words.count(w) for w in words]

 print(dict(zip(freq,words)))

 return words

def main():

wordsOfFreqency(words, freq)      

if __name__=="__main__":

main()    # call main function

Explanation:

This will print the list of strings as per its word frequency.

Output is :

{4: 'APPLE', 3: 'MANGO', 2: 'ORANGE', 1: 'GUAVA'}

4 0
3 years ago
Pls someone help me with these four questions
ipn [44]

Answer:

16. Grace Hopper. 1959.

8 0
3 years ago
A(n ________ cpu has two processing paths, allowing it to process more than one instruction at a time.
Alik [6]
#1) A(n ________ cpu has two processing paths, allowing it to process more than one instruction at a time.
Answer: Multi-core. A multi-core processor is a single computing component with two or more independent actual processing units (called "cores"), which are units that read and execute program instructions. The instructions are ordinary CPU instructions, but the multiple cores can run multiple instructions at the same time, increasing overall speed for programs.
8 0
3 years ago
Read 2 more answers
Other questions:
  • What type of stud is placed below a windowsill to support its weight
    12·1 answer
  • Imagine that you have configured the enable secret command, followed by the enable password command, from the console. You log o
    9·1 answer
  • List three things that scientists learned about earth beginning in the 1800s
    13·1 answer
  • The most common Unicode transformation formats are UTF- ______ and UTF-16.
    9·1 answer
  • Please help with my Python code - Functions
    6·1 answer
  • Which of the following is considered a skill?
    11·1 answer
  • I NEED HELP ASAP!!!!!! IM IN THE MIDDLE OF A QUIZ!!!! Why did the film industry agree to set standards for film production?
    11·1 answer
  • Used for monitoring web activity by users to make sure that sensitive information won't leave the building.
    7·1 answer
  • In securing the client/server environment of an information system, a principal disadvantage of using a single level sign-on
    12·1 answer
  • What does the x mean in .docx
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!