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

Consider the following code which deletes all the nodes in a linked list. void doublyLinkedList::destroy() { nodeType *temp; //p

ointer to delete the node while (first != nullptr) { temp = first; first = first->next; ____ } last = nullptr; count = 0; } Which of the following is the missing statement?
Computers and Technology
1 answer:
Lera25 [3.4K]3 years ago
5 0

Answer:

The answer is "delete temp;".

Explanation:

  • In the given code a class "doublyLinkedList" is defined that contains a method that is destroy(). This code uses a scope resolution operator to define the method outside the class.
  • To access this method write return type of function then class name:: (use scope resolution operator) and function name.
  • In this function, nodeType temp is a pointer variable that is used to delete the node.
  • In method definition, a loop is declared that check value that is first not equal to nullptr. which means the first node is not equal to null. In this loop, a temp variable holds the first variable value and the first variable value is holding another variable value and then use the "delete temp" statement to delete a node in the list.
  • Outside a loop, the last variable holds nullptr variable value and the count variable assigns a value that is 0.
You might be interested in
While waiting to be seated at a restaurant, Jason receives a customer loyalty coupon through an app on his mobile phone for half
Tamiku [17]

Answer:

Excite

Explanation:

The 4E framework objectives are:

EXCITE: customer are excited with relevant offer

EDUCATE: customer are educated about ongoing offers

EXPERIENCE: customer experience is improved with regards to the product

ENGAGE: customer is engaged to share feedback.

The use of location-based software application will help Jason to be excited. In this case Jason will be excited about the offer.

6 0
3 years ago
PYTHON!
SashulF [63]

Explanation:

<h2>hi dude 15 Alignment, font styles, and horizontal rules</h2><h2>Contents</h2><h2 /><h2>Formatting</h2><h2>Background color</h2><h2>Alignment</h2><h2>Floating objects</h2><h2>Float an object</h2><h2>Float text around an object</h2><h2>Fonts</h2><h2>Font style elements: the TT, I, B, BIG, SMALL, STRIKE, S, and U elements</h2><h2>Font modifier elements: FONT and BASEFONT</h2><h2>Rules: the HR element</h2><h2>This section of the specification discusses some HTML elements and attributes that may be used for visual formatting of elements. Many of them are deprecated.</h2><h2 /><h2>15.1 Formatting</h2><h2>15.1.1 Background color</h2><h2>Attribute definitions</h2><h2 /><h2>bgcolor = color [CI]</h2><h2>Deprecated. This attribute sets the background color for the document body or table cells.</h2><h2>This attribute sets the background color of the canvas for the document body (the BODY element) or for tables (the TABLE, TR, TH, and TD elements). Additional attributes for specifying text color can be used with the BODY element.</h2><h2 /><h2>This attribute has been deprecated in favor of style sheets for specifying background color information.</h2><h2 />

15.1.2 Alignment

<h3>It is possible to align block elements (tables, images, objects, paragraphs, etc.) on the canvas with the align element. Although this attribute may be set for many HTML elements, its range of possible values sometimes differs from element to element. Here we only discuss the meaning of the align attribute for text.</h3><h2 /><h2>Attribute definitions</h2><h2 /><h2>align = left|center|right|justify [CI]</h2><h3>Deprecated. This attribute specifies the horizontal alignment of its element with respect to the surrounding context. Possible values:</h3>

left: text lines are rendered flush left.

center: text lines are centered.

right: text lines are rendered flush right.

justify: text lines are justified to both margins.

The default depends on the base text direction. For left to right text, the default is align=left, while for right to left text, the default is align=right.

3 0
3 years ago
Technician A says that almost every part of a vehicle is somehow powered by or controlled by an electrical or electronic system.
Novay_Z [31]
I believe that both tech A and B are right.
8 0
3 years ago
Read 2 more answers
Suppose we have an 8 block cache. Each block of the cache is one word wide. When a given program is executed, the processor read
Ber [7]

Answer:

check the attached files below for answer.

Explanation:

4 0
3 years ago
Access your Practice Lab titles Access your exercise content Reports and files Access your settings Access help and support Comp
Degger [83]

Answer:

The extension for a shell script in windows ends with a .ps1 and for the extension for linux it is .sh, not quite sure for OSX.

4 0
3 years ago
Other questions:
  • Why might information overload be a concern for consumers who use a cell phone app to research a particular purchase? What would
    9·1 answer
  • When parking ur vehicle facing downhill with a curb, you should point ur front wheels?
    7·2 answers
  • What does a sharp sign indicate when used in representing a pitch?
    10·1 answer
  • Gps receivers are commonly used by individuals to determine their geographic location while hiking and to obtain driving directi
    5·1 answer
  • Choose a firewall that is currently on the market and write a technical "sales pitch" to your classmates on why they should choo
    5·1 answer
  • What is the fastest way to move data over long distances using the internet, for instance across countries or continents to your
    13·1 answer
  • 5. Write few lines of code that creates two arrays with malloc. Then write a statement that can create a memory leak. Discuss wh
    8·1 answer
  • What function returns a line and moves the file pointer to the next line?
    9·1 answer
  • Plzz help.... <br><br>i will mark u as brainliest if u answer correct
    10·1 answer
  • Why are graphs and charts important to analyze data?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!