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
Makovka662 [10]
3 years ago
10

Give me two reasons why return statements are used in code.

Computers and Technology
2 answers:
levacccp [35]3 years ago
8 0
It can stop the function when it’s no longer needed to keep running

And it can give a certain value to send back so it can be used elsewhere in your code
Svetach [21]3 years ago
4 0

Explanation:

The C language return statement ends function execution and ... the calling function at the point immediately following the call. ... For more information, see Return type.

You might be interested in
Suppose you create a class Square to be a subclass of GeometricObject. Analyze the following code:
Lemur [1.5K]

Answer:

B. The program has a compile error because you attempted to invoke the GeometricObject class's constructor illegally.

Explanation:

To call a superclass constructor, the user must use super(). This is necessary unless default constructors are used. Also, it is vital to make sure if their are appropriate argument to be used while invoking the superclass constructor.

3 0
3 years ago
Which laptop part is usually replaceable through unlocking it, pulling it out, and then replacing it with a new one?
leva [86]

Answer:

maccbook

Explanation:

maccbooks r awesome

7 0
2 years ago
Read 2 more answers
class bClass{public:void setX(int a);//Postcondition: x = a;void print() const;private:int x;};class dClass: public bClass{publi
MaRussiya [10]

Answer:

The answer to the given question in the option "a".

Explanation:

In the given c++ program the correct sets value of x and y is option a:

void dClass::setXY(int a, int b) //function implementation

{ //function body.

x = bClass.setX(a); //variable x hold value of setX() function.

b = y;  //variable b holds value of y.  

}

And other option are not correct that can be described as:

  • In option b, x is private variable of the base class that is inherit by the derived class but variable y is not part of the base class. that's why it is wrong.
  • In option c, x= a is correct but y=b is not correct. that's why it is wrong.
  • In option d we access the value of the private variable x that is a part of the base class but in this we not use any variable that holds its value. that's why it is wrong.

So the answer to this question is the option "a".  

6 0
3 years ago
Which BEST describes how the author’s purpose is revealed? A) The speaker appeals to the emotions of the audience in section 10.
tatiyna

You probably meant languge arts not Tech.

Anyways I will not be sure unless I read the book but..C most of the time is correct sooo sorry I can't help much unless I read the book

I would suggest <u>B) The speaker appeals to the emotions of the audience in section 9.</u>

<u />

I'm also sorry that I'm late but I hope someone else who searchs this up can use this

<u></u>

<u>Sorry If I'm wrong</u>

8 0
3 years ago
To create nested lists within each of these topical areas that would contain links to specific pages on the AllStyles website. I
Gwar [14]

Answer:

The answer is add a new list within a list.

Explanation:

Because a nested list is a list within a list. It is the same effect of a bulleted outline in a word processing document you probably used a variety of indentations and bullet point types to denote items that were subpoints of another item in the outline.

7 0
3 years ago
Other questions:
  • The file containing the definitions of the member functions of class DateType is called the ______ file.
    6·1 answer
  • The _____ is a computer-based test that measures the degree to which you associate particular groups of people with specific cha
    13·1 answer
  • An online game is played with two dice, explain why decomposition will be used in creating the algorithm for the game?
    9·2 answers
  • A perfect binary tree is a complete binary tree with all levels fully filled. Add a method in the BST class to return true if th
    13·1 answer
  • You receive $50 as a birthday gift and choose to spend it all on new wallpaper for your room. The opportunity cost of this decis
    7·1 answer
  • Write a program whose input is two integers and whose output is the two integers swapped. Ex: If the input is: 38 then the outpu
    11·1 answer
  • You have just purchased a server with Windows Server 2016 Datacenter Edition installed. The server has 4 GB RAM, a 200 GB hard d
    6·1 answer
  • 8.7 lesson practice question 1
    13·1 answer
  • PLZZZZZZZZZZZZZZZ HELP ME OUT!!!!! I SICK AND TIRED OF PEOPLE SKIPING MYQUESTION WHICH IS DUE TODAY!!!!
    14·1 answer
  • What is computer specification
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!