question on mallocint *ptr ;ptr = ________ malloc ( 5 * sizeof ( int ) ) ;I want ptr to point to the memory location malloc allocated for us.

Answers

Answer 1

The correct statement to make ptr point to the memory location that malloc allocated for us would be:  ptr = (int *) malloc(5 * sizeof(int));

Here, we are using the malloc function to allocate a block of memory that is the size of 5 integers (5 * sizeof(int)). The malloc function returns a void pointer to the beginning of this block of memory. We then cast this void pointer to an int pointer using (int *) and assign it to the variable ptr. This makes ptr point to the beginning of the block of memory that was allocated by malloc.

You can learn more about malloc function at

https://brainly.com/question/19723242

#SPJ11


Related Questions

This question has two parts : 1. List two conditions required for price discrimination to take place. No need to explain, just list two conditions separtely. 2. How do income effect influence work hours when wage increases? Be specific and write your answer in one line or maximum two lines.

Answers

Keep in mind that rapid prototyping is a process that uses the original design to create a model of a part or a product. 3D printing is the common name for rapid prototyping.

Accounting's Business Entity Assumption is a business entity assumption. It is a term used to allude to proclaiming the detachment of each and every monetary record of the business from any of the monetary records of its proprietors or that of different organizations.

At the end of the day, we accept that the business has its own character which is unique in relation to that of the proprietor or different organizations.

Learn more about Accounting Principle on:

brainly.com/question/17095465

#SPJ4

A dim display on a laptop LCD screen might indicate that there is a problem with: (Select 2 answers)

Answers

Answer:

GPU or Display Connector.

Erin’s classmate said that the program that they were working on is not running properly because the classmate accidentally put in commas where semi-colons should be. What kinds of errors does Erin need to fix?
logic errors
database errors
debugging errors
syntax errors

Answers

Answer:

A simple syntax error :)

"A character or string incorrectly placed in a command or instruction that causes a failure in execution."

Good luck! Hope this helped! :D

The kinds of errors does Erin need to fix is a simple syntax error.

What is syntax error?

Syntax is a character or string when incorrectly placed in a command or instruction results in failure while executing.

Erin’s classmate said that the program that they were working on is not running properly because the classmate accidentally put in commas where semi-colons should be.

The correct way to remove syntax error is putting colon and semicolon on the right place.

Learn more about syntax error.

https://brainly.com/question/18271225

#SPJ2

explain one advantage and two disadvantage of including an instruction such as this in a pipelined processor

Answers

The one advantage and two disadvantages of including an instruction in a pipelined processor are explained below.

The advantage of a pipelined processor is performance improvement, through pipelining it is possible to pump more instructions in order to execute parts of various instructions in parallel. The first disadvantage of a pipelined processor is that it makes things complex in the case of branch forwarding. and the second disadvantage is that it makes concurrency problems related to the influence of several instructions using the same data or waiting for several other instructions to run.

You can learn more about pipelined processor at

https://brainly.com/question/13059382

#SPJ4

What are Apps?
How do we interact with them?

Answers

Answer:

Sliding elements in list format.

Cards.

Images.

Buttons.

Overflow screens.

Multiple selection app interactions.

Text input fields.Explanation:

question 1 as a digital marketer creating a webpage, you start with keyword research to better understand the visitor. then you create fresh and unique content tailored to your visitors. this represents which website optimization recommendation?

Answers

Know what visitors want and give it to them is start with keyword research to know more about the visitor

Recomendation for Website Optimization

There is a plenty way to optimize your website such as:

1. Provide an appropriate amount of content for your subject.

2. Make expertise and authoritativeness clear.

3. Act in a way that cultivates user trust.

4. Research to know what visitor want with keyword research

Learn more about digital marketer : https://brainly.com/question/22965733

#SPJ4

What is the author's purpose for writing this article? A to persuade readers to consider a career in aerospace engineering and at NASA B to caution readers about the difficulties that aerospace engineers encounter C to highlight the experiences of Tiera Fletcher growing up and as an aerospace engineer D to promote Tiera Fletcher's book and her nonprofit organization, Rocket With The Fletchers

Answers

Answer:

C to highlight the experiences of Tiera Fletcher growing up and as an aerospace engineer

Explanation:

Dream Jobs: Rocket Designer, a Newsela article by Rebecca Wilkins was written with the intent of informing the readers of how Tiera Fletcher developed a love for mathematics at an early age and further developed a desire to be a Space Engineer which she succeeded at. She highlighted the different steps she took before she realized her goal. Some of these steps included working as an intern in several space establishments and performing research.

Today, she is very successful in her career and hopes  that young ones can pursue a career in any STEM careers of their choice.

Answer:

c on newsella

Explanation:

“Here’s my idea: I want to build a tic-tac-toe game. The user creates an account if they don’t already have one and are taken to the main game board. From there the player will play against the computer in either easy, intermediate, or advanced mode, so I will need to write the code for the computer player. When the game is over their lifetime win total is updated. I will also keep track of how long the game took.”

Answers

Answer:

tic tac

Explanation:

tic tac and hamburger always

assuming you have an images module object named i, what method can you use to change the pixel at coordinate 238, 590 to red?

Answers

To change the pixel at coordinate (238, 590) to red using the images module, you can use the following method:

i.putpixel((238, 590), (255, 0, 0))

This method putpixel allows you to specify the coordinates of the pixel and the desired color. In this case, the RGB values (255, 0, 0) represent the color red.

Know more about pixel here:

https://brainly.com/question/15189307

#SPJ11

The rules of a programming language constitute its__________________

Answers

The rules of a programming language constitute its syntax.

which of the text wrapping settings flows around the exact outline of an object?

Answers

The text wrapping setting that flows around the exact outline of an object is called "Tight" or "Contour" wrapping.

In most word processing or design software, there are different text wrapping options available to control how text interacts with objects such as images or shapes. Among these options, the one that enables the text to flow precisely around the outline of an object is typically referred to as "Tight" or "Contour" wrapping.

When the Tight or Contour wrapping option is selected, the software analyzes the shape of the object and adjusts the text flow accordingly. The text wraps closely around the object, following its contours and maintaining a consistent distance from its edges. This setting is particularly useful when you want the text to seamlessly integrate with the object, such as in graphic design or document layout where precise alignment is crucial.

By choosing Tight or Contour wrapping, you can achieve a visually appealing composition where the text appears neatly wrapped around the object's shape, enhancing the overall presentation of your document or design.

learn more about text wrapping here:

https://brainly.com/question/32265831

#SPJ11

Why does a computer needs RAM

Answers

Answer:

The more RAM your CPU has access to, the easier its job becomes, which enables a faster computer. If you do not have a sufficient amount of RAM than your CPU has to work much, much harder to transfer data, which severally damages the computer's performance. Random access memory also helps your system support software.

Answer:

The more RAM your CPU has access to, the easier its job becomes, which enables a faster computer. If you do not have a sufficient amount of RAM than your CPU has to work much, much harder to transfer data, which severally damages the computer's performance. Random access memory also helps your system support software

How are the internet and the web related?

A.
They are not related.
B.
They are the same thing.
C.
The internet runs on the web.
D.
The web runs on the internet.

Answers

Answer:

hi

Explanation:

i think it is it is C

hope it helps

have a nice day

What is the Full form of DC?

Answers

Answer:

Deputy Commissioner.

Answer:

the full form of DC is deputy commissioner

porque es necesario consumir diversos tipos de alimentos

Answers

AnswerAl mirar la comida para adivinar la calidad, algunas personas lo adivinaron. Especialmente mujeres.

Explanation:

Al mirar la comida para adivinar la calidad, algunas personas lo adivinaron. Especialmente mujeres.

What is pivot table field in Excel?

Answers

A task pane connected to a pivot table is called PivotTable Field. Fields and Areas are included in the PivotTable Fields Task Pane.

Fields are presented above Areas by default in the Task Pane, which is located on the right side of the window. Check boxes are included in fields, which stand in for the columns in your data set (an Excel table or range).

Anywhere in the PivotTable should be clickable, bringing up the Field List. Click anywhere in the PivotTable to reveal the Field List if you click inside it but don't see it, thenfrom the ribbon select Analyze--> Field List from the PivotTable Tools menu.

A pivot table is a statistics tool that compresses and reorganizes particular columns and rows of data in a spreadsheet or database table in order to produce the required report. The utility simply "pivots" or rotates the data to examine it from various angles rather than altering the spreadsheet or database itself.

To learn more about pivot table field click here:

brainly.com/question/29526863

#SPJ4

Cloud computing revolutionized software provision, creating unprecedented levels of flexibility for modern organizations. What is one of the biggest organizational risks associated with the shift to the cloud? a. Lower hardware costs b. Increased options for software solutions c. Business units provision software independently and decrease IS governance. d. Servitized software options for business functionality.

Answers

One of the biggest organizational risks that is associated with the shift to the cloud include the following: d. Servictized software options for business functionality.

What is cloud computing?

In Computer technology, cloud computing is a type of computing service that requires the use of shared computing resources over the Internet, rather than the use of local servers and hard drives.

Generally speaking, cloud computing is a type of technology which avail end users an opportunity to access software applications, back up, and store their files (documents), including performing tasks without the use of additional software applications or servers.

In this context, we can reasonably infer and logically deduce that servictized software options poses a big organizational risk for business functionality operating on the cloud.

Read more on cloud computing here: brainly.com/question/17247526

#SPJ4

Which Definition Best describes Technology as it Is Used in Science

Answers

Answer: the best explanation that describes that application of technology in science is the application of new methods or devices to solve problems The definition of technology is science or knowledge put into practical use to solve problems or invent useful tools.

Explanation:

The definition of technology is the application of scientific knowledge for practical purposes or applications.

What is Technology?

Technology is the utilization of knowledge to achieve practical goals in a predictable and repeatable manner. The term technology may also refer to the outcome of such an undertaking. Technology is widely used in medical, research, industry, communication, transportation, and everyday life.

Technology uses scientific principles and applies them to change the environment in which humans live. Technology can also be used to advance the industry through the guidance of scientific principles. It also helps in solving the problems which creates the technological advancements.

Therefore, It implies that where there are tensions or problems, there is the technology to solve the problem.

Learn more about Technology here:

https://brainly.com/question/9171028

#SPJ2

NEED HELP ASP WILL GIVE BRAINLIEST


Which of the following is a way to ensure that a title screen makes a good impression on the player?

Responses

include the game designer’s name

create a title screen that is similar to another game’s title screen

showcase elements of the game

include text that describes the difficulty of the game

Answers

Answer:

I don’t know if this is correct but from a gamer I would say showcase elements of the game

Explanation:

What is the difference, if any, between a project manager and a producer on a digital media production team? A project manager oversees the entire project, while the producer just oversees the creative element. A project manager just oversees the creative element, while a producer oversees the entire project. A project manager is in charge of the people involved in the project, while the producer secures the funds. A project manager secures the funds for the project, while the producer is in charge of the people involved.

Answers

Answer:

A project manager just oversees the creative element, while a producer oversees the entire project.

It is B

Answer:

b

Explanation:

got it right on the quiz

The running head is a(n) ____. Question 14 options: list of authors’ last names brief title the first sentence of the abstract a short statement of the conclusions

Answers

The running head is a brief title that appears at the top of each page of a research paper. It is typically no more than 50 characters and is used to provide a quick and concise summary of the paper's content.

The running head is placed flush left at the top of the page and is usually in all capital letters. It is an important element of APA style formatting, as it helps to identify the paper and provide context for the reader.

While it is not necessary to include the running head on the title page of the paper, it is required for all subsequent pages. In addition to the running head, APA style also requires a page number to be included in the upper right-hand corner of each page.It provides a quick reference for readers and helps them easily identify the content of the paper. It usually includes a shortened version of the paper's full title and may also include the authors' last names, depending on the citation style. The running head should be concise and limited in character length, typically under 50 characters, including spaces and punctuation.

for such more questions on  APA style formatting

https://brainly.com/question/30401644

#SPJ11

could someone please list the psychological impacts of Video games that differ the mind of teenagers. If you’ve previously completed a essay or report on this, please show me as an example. Thank you!

Answers

Answer:

Previous studies show that violent video games increase adolescent aggressiveness, but new Dartmouth research finds for the first time that teenagers who play mature-rated, risk-glorifying video games are more likely subsequently to engage in a wide range of behaviors beyond aggression, including alcohol use, smoking.

Explanation:

it has effected me by the way but im fine now it was for a short amount of time

Choose which statement is wrong by applying your knowledge from the reading. a. A security manager works on tasks identified by the CISO and resolves issues identified by technicians. b. The relationship between security and convenience is inversely proportional: as security is increased, convenience is decreased. c. Since 2015, the number of unfilled cybersecurity positions has increased by 10 percent.

Answers

There are reasons why a statement can be wrong. The option that is a wrong statement is Since 2015, the number of unfilled cybersecurity positions has increased by 10 percent.

How are many cybersecurity jobs unfilled?

The U.S. is known to have a high total employed cybersecurity workforce and some that are unfilled positions as reported by Cyber Seek.

Studies has shown that since 2015, the number of unfilled cybersecurity positions has gone up by 50 percent. Such that  the total expected rate has been approximated to be at 1.8 million open cybersecurity positions by 2022.

Learn more about cybersecurity from

https://brainly.com/question/14286078

read two doubles as the voltage and the current of a circuit object. declare and assign pointer mycircuit with a new circuit object using the voltage and the current as arguments in that order. then call mycircuit's increasecurrent() member function

Answers

First, declare and assign the pointer 'mycircuit' with a new circuit object using the provided voltage and current values. Then, call the 'increasecurrent()' member function of 'mycircuit'.

How to create and manipulate a circuit object?

To create and manipulate a circuit object, we follow a few steps. Firstly, we declare and assign a pointer, 'mycircuit', to a new circuit object. The 'new' keyword is used to dynamically allocate memory for the object, and the provided voltage and current values are passed as arguments. This step initializes the circuit object with the given voltage and current.

Next, we call the 'increasecurrent()' member function of 'mycircuit'. By accessing the object through the pointer and invoking its member function, we can modify the state of the circuit. In this case, 'increasecurrent()' will perform the desired operation to increase the current of the circuit.

Learn more about circuit

brainly.com/question/12608516

#SPJ11

The sun has been up for several hours, and it has been shining on these trees.
What can the trees do because they are in sunlight? What does this mean for the number of energy storage molecules in the trees?
The trees can . . .

A. give off carbon to the air. Giving off carbon allows them to make energy storage molecules.

B. give off carbon to the air. Giving off carbon uses up energy storage molecules.

C. take in carbon from the air. The carbon is used to make energy storage molecules.

D. take in carbon from the air. The carbon is used to break down energy storage molecules.

Answers

For some hours now, the light has been beaming on these trees. Because they are in sunlight, The trees can "take in carbon from the air. The carbon is used to make energy storage molecules." (Option C).

What is the above process called?

The above process is called Photosynthesis. Photosynthesis is the process through which plants convert sunlight, water, and carbon dioxide into oxygen and sugar energy.

Photosynthesis is the process through which plants and other organisms convert light energy into chemical energy, which is subsequently released to fuel the organism's activities through cellular respiration.

Photosynthesis has the following characteristics: It is a process that happens only in plants that have the green pigment chlorophyll, which is utilized to manufacture food. Sunlight, water, and oxygen are required, and two processes occur, one light-dependent and one light-independent.

Learn more about trees:
https://brainly.com/question/11076581

#SPJ1

6. A ____
is included within a document in a cell to perform a particular action when
selected such as starting an email or navigating to a web page.

A. file
B. hyperlink
C. graphic
D. dialog box

Answers

The answer is B hyperlink

Answer:

B. Hyperlink

Explanation:

File is to put documents away in a file that other similar documents are kept in. A metal tool with rough parts that is used for making things smooth by rubbing.

Information that is stored on a computer under its own heading. Cut or shape something using a file.

A box, often made from card, used to keep documents in.

Hyperlink is included within a document in a cell to perform a particular action when selected such as starting an email or navigating to a web page.

Graphics are photographs or other visual representations in a printed publication. The drawings and photographs in the layout of a book.

Dialog box is a small temporary window in a graphical user interface that appears in order to request information from the user; after the information has been provided the user dismisses the box with ‘okay’ or ’cancel’.

Therefore, the correct answer is b. hyperlink.

ANSWER:POST-TEST

direction encircle the letter of the correct answer..

1 .the written description accompanying the working drawing

2. a board made of plaster with covering of paper

3.a fire protection device that discharge water when the effect of a fire have been detected, such as when a predetermined temperature has been reached.

4.structural members in building construction that holds the ceiling board

5.the position or placement of lightning fixtures of the house.


with answer na din.

1.C
2.D
3.B
4.A
5.D

SANA MAKATULONG★☆☆


TLE​

Answers

Answer:

1. Specifications.

2. Gypsum board.

3. Sprinkler systems.

4. Ceiling joist.

5. Lighting fixtures.

Explanation:

In Engineering, it is a standard and common practice to use drawings and models in the design and development of buildings, tools or systems that are being used for proffering solutions to specific problems in different fields such as banks, medicine, telecommunications and industries.

Hence, an architect or design engineer make use of drawings such as pictorial drawings, sketches, or architectural (technical) drawing to communicate ideas about a plan (design) to others, record and retain informations (ideas) so that they're not forgotten and analyze how different components of a plan (design) work together.

Architectural drawing is mainly implemented with computer-aided design (CAD) software and it's typically used in plans and blueprints that illustrates how to construct a building or an object.

1. Specifications: it's a well-written description that accompanies a working drawing used for designs and constructions.

2. Gypsum board: also referred to as drywall due to its inherent ability to resist fire. It's a type of board that's typically made of plaster with some covering of paper and it's used for ceilings, walls, etc.

3. Sprinkler systems: it's an automatic fire protection device that is typically designed to discharge a volume of water as soon as the effect of a fire is detected. For instance, when a predetermined or set temperature has been reached such as 69°C

4. Ceiling joist: structural members that are aligned or arranged horizontally in building construction in order to hold the ceiling board together.

5. Lighting fixtures: it's typically the position or placement of lightning fixtures of the house.

A computer is performing a binary search on a sorted list of 20 items. What is the maximum number of steps it needs to find the item?

Answers

The maximum number of iterations needed to find the item is; Option B: 3,  [1, 5, 20, 50, 51, 80, 99] Now, when conducting binary search, it usually starts in the middle of the list of given numbers.

What is binary?

Binary describes a numbering scheme in which there are only two possible values for each digit -- 0 or 1 -- and is the basis for all binary code used in computing systems. These systems use this code to understand operational instructions and user input and to present a relevant output to the user. The term binary also refers to any digital encoding/decoding system in which there are exactly two possible states. In digital data memory, storage, processing and communications, the 0 and 1 values are sometimes called low and high, respectively. In transistors, 1 refers to a flow of electricity, while 0 represents no flow of electricity.

To learn more about binary refer to:

brainly.com/question/16612919

#SPJ1

6. among all projects ‘chen’ works on, list the name of project that he spent most working hours.'

Answers

Among all the projects that 'Chen' works on, the project in which he has spent the most working hours is [project name].

'Chen' is involved in multiple projects, but one project stands out in terms of the time he has dedicated to it. After analyzing the data on 'Chen's working hours across all his projects, it is evident that [project name] has consumed the most of his time. This conclusion is drawn by comparing the total number of working hours logged for each project. By prioritizing and allocating significant resources to this particular project, 'Chen' has demonstrated his commitment and dedication to its success. It is likely that the nature or scope of this project requires extensive time and effort, resulting in 'Chen' spending the most working hours on it compared to his other projects.

Learn more about Working hours here ; brainly.com/question/876994

#SPJ11

Find the equation of a line which has 10 points the following two coordinates: (4, 0) and (3, 4)​

Answers

Answer:

The equation of the line is y = -4·x + 16

10 points on the line include;

(0, 16), (1, 12), (2, 8), (3, 4), (4, 0), (5, -4), (6, -8), (7, 12), (8, -16), (9, -20), and (10, -24)

Explanation:

The given points through which the line passes are;

(4, 0) and (3, 4)

The slope, 'm', of the line is given as follows;

\(Slope, \, m =\dfrac{y_{2}-y_{1}}{x_{2}-x_{1}}\)

Therefore, the slope of the line is (4 - 0)/(3 - 4) = -4

In point and slope form we can get;

\(\dfrac{y-0}{x-4} = -4\)

The equation of the line in point and slope form is therefore;

y = -4·(x - 4) = -4·x + 16

The equation of the line in slope and intercept form is

y = -4·x + 16

10 points on the line are obtained using the equation of the line and the desired x-values input into cells on MS Excel and presented here as follows;

(0, 16), (1, 12), (2, 8), (3, 4), (4, 0), (5, -4), (6, -8), (7, 12), (8, -16), (9, -20), and (10, -24)

Find the equation of a line which has 10 points the following two coordinates: (4, 0) and (3, 4)
Other Questions
(q024) suppose that the following information is known about asa: he earns $126,000 in annual income, has a net worth of $324,000, has a master's degree, and works as a civil engineer. a sociologist could use this information to classify asa in terms of his . Im lonely :( :( :( :( which method of conflict redolution involved both parties pretending the problem does not exist in the hopes that it will "fix itself" ms. carson gives courtney an additional 30 minutes to complete the math assignment. what instructional variable did ms. carson change? Give a definition of RFP, IFB, RFQ, and RFI. Denote when eachis used What do you think the caliphs wished to expand their empire? What is called mutation? Which single transformation can be applied to the graph of y = 72 StartRoot x EndRoot to produce the graph of y = 9 StartRoot x EndRoot?- vertical translation- vertical compression- horizontal translation - horizontal compression 2. A submarine is able to raise and lower itselfunderwater. A rock sinks when it is dropped in apool because it is denser than water. A piece ofwood floats in the pool because it is less densethan water. What could the submarine change inorder to sink or float? Choose all that apply.A. the submarine's volumeB. the submarine's massC. the state of the surrounding waterD. the mass of the surrounding water each geographic combatant command has a to plan and control special operations and other special operations forces activities. Does the authors viewpoint affect his realizability? Cite evidence from The Dream Comes True to support your answer. when prescribing a medication to an older patient, whether a controlled substance or other class of medication, it is important to: true or false? a speech organized using a chronological pattern may present the main points of a message either forward or backward in a systematic, time-related fashion. 13. the specifies the instants in time at which the selection function is exercised. a) decision mode b) medium-term scheduling c) ready state d) tat compare and contrast how was the african slave trade before european involvement diffrent from the african slave trade after european involvement Why data is important? what is the 3-dimensional orientation of a sublevel known as? do you think a fossil can form anywhere on Earth, or does fossil formation require certain conditions? Explain your answer. Cellular respiration and photosynthesis are two of the major processes involved in cycling carbon through the carbon cycle. Examine the model. How does cellular respiration cycle carbon compounds through the biosphere? Choose ALL that apply.(A) Cellular respiration absorbs carbon dioxide from the atmosphere. (B) Cellular respiration releases carbon dioxide into the atmosphere. (C) Cellular respiration uses carbon containing compounds to produce ATP.(D) Cellular respiration absorbs carbon containing compounds from the soil.(E) Cellular respiration releases carbon containing compounds into the soil. Help help help need to bring my f up in math