To obtain the proper amount of memory required, which argument should you place in the malloc() function?Select an answer:a) the number of bytes requiredb) a pointerc) the size of the data type required multiplied by the number itemsd) a pointer of the data type required multiplied by the number of items

Answers

Answer 1

The argument that should be placed in the malloc() function to obtain the proper amount of memory required is: c) the size of the data type required multiplied by the number of items.

The malloc() function in C and C++ is used to allocate a block of memory of a specified size. The argument passed to malloc() specifies the number of bytes to be allocated. Therefore, the amount of memory required must be calculated based on the size of the data type required and the number of items to be stored.

For example, if you want to allocate memory for an array of 10 integers, you would calculate the size of each integer (which is typically 4 bytes on most systems) and multiply it by the number of items, which is 10. So the argument passed to the malloc() function would be 10 * sizeof(int). Here, sizeof(int) returns the size of the integer data type in bytes.

Learn more about malloc() function: https://brainly.com/question/19723242

#SPJ11


Related Questions

16
Mackenzie is the network administrator for a large security corporation. What task
might Mackenzie perform as part of her job?
O answering calls from customers who need help
9
developing a website for the corporation
12
connecting a new computer to the network
15
testing a new video game before its release

Answers

Answer:

Connecting a new computer to the network.

Answer:

C. Connecting a new computer to the network

Explanation:

That is part of the job and the test say it is correct.

Choose all items that are true about the two example of HTML shown on the right.

Example 1 will display differently than example 2 in a web browser.

They are styled differently, but will look the same in a web browser.

Example 2 is easier to analyze and repair.

The styling in example 2 is required by modern web browsers.

Answers

Answer:

2

Explanation:

Answer:

B and C

Explanation:

Could someone please help?​

Answers

Answer:

it looks difficult

Explanation:

you can devotingly solve it

What is the name of the function below?

function go(){
alert("hello everybody");
}

Answers

Answer:

It’s Java script I think and it makes something say hello everybody

Explanation:

When you click on what will happen?

The font will change back to the default setting.
The document will change back to the last time you saved it.
The last step will be undone.
The last step will be redone.

Answers

The last step is undone. The default font choices in Microsoft Word are one of the biggest sources of ongoing annoyance for legal users.

What is Default setting?

you can alter just two Styles (+Body and +Headings) permanently to give your papers a more professional typography.

There is a drop-down menu labeled Fonts over to the far right. You can view a list of preconfigured font sets by clicking on Fonts. You want to select Customize Fonts from here.

You can see the Body font and the Heading font on the left. Here is where you control the two Styles, +Body and +Headings, that I mentioned previously.

Therefore, The last step is undone.

To learn more about default font, refer to the link:

https://brainly.com/question/21104940

#SPJ1

Answer: C The last step will be undone. this is the Undo Icon

Explanation:

3 uses for a GPS system other than for a satellite navigation system

Answers

Answer:

Location – determining a position. Navigation getting from one location to another. Tracking – monitoring object or a personal movement. Mapping – creating maps of the world.

what is a defult? pls help if you wouldn't mind

Answers

Answer:

a beginner or a novice

Explanation:

failure to fulfill an obligation, especially to repay a loan or appear in a court of law.

# input a mark in a subject of a student and
Check if the student is pass or not pass [pass mark=30]​

Answers

Answer:

mark = int(input("Enter mark: "))

if (mark >= 30):

 print("Pass")

else:

 print("Not pass")

___________ is a computer programming language.

Answers

Python!!! I hope that helped!!
Pascal, c+, c++ etc

Find the cost of 2m 20cm at 25p per metre​

Answers

Answer: 55 meters.

Explanation:

First convert the 20 cm to meters so the entire number is in meters.

1 meter = 100 cm

20 in cm is:

= 20/100

= 0.2 meters.

2.2 meters.

One meter costs 25p so 2.2 meters will cost:

= 2.2 * 25

= 55 meters

Frida has been given the task of creating a database to store all her company's records and sales records. She is going to produce a relational database. The customers records will have the fields Customer_id, Name, Contact_Phone, and card Number. The sales records will have the fields Invoice_number, Item_number, Item_description, Item_cost and Customer_ref.

Complete the diagram below to show how the tables will be combined.

Answers

Answer:

A value that's used to identify a record from a linked table is called a ______. ... A database administrator is setting up a new table that will contain customer ... The fields include name, address, company, phone, email, and customer ID. ... Gina does not know how to write SQL commands and no forms have been created.

Explanation:

1. ¿Dónde emergieron los Bancos Centrales? 2. ¿En qué siglo los Bancos Centrales se potenciaron? 3. ¿El Banco de Suecia en qué siglo fue fundado? 4. ¿En el año de 1694 qué Banco se creó? 5. ¿Quién creo en 1800 el Banco Francés? 6. ¿En qué siglo y años Estados Unidos creó el Banco Estados Unidos? 7. Entre 1861 -1865 Abraham Lincoln creo el primer Banco y único Banco Central ¿Cuál erasu objetivo? 8. ¿Cuál otras funciones cumplían los Bancos en el siglo XIX?

Answers

Answer:

. ¿Dónde emergieron los Bancos Centrales?

El primer banco central fue creado por el Parlamento Sueco en 1668, siendo su principal acreedor la Corona Sueca. Esto generó inflación y crisis financieras. Después de un siglo, en 1779, la ley fue modificada, obligando al Banco a que la masa monetaria fuese respaldada por oro en una proporción fija. Sin embargo, comenzó la guerra con Rusia y se regresó a su origen violando el precepto de estabilidad que confería ese patrón oro.

2. ¿En qué siglo los Bancos Centrales se potenciaron?

La historia de la banca central se remonta al menos al siglo XVII, con la fundación de la primera institución reconocida como un banco central, el Banco de Suecia.

3. ¿El Banco de Suecia en qué siglo fue fundado?

El primer banco central fue creado por el Parlamento Sueco en 1668.

4. ¿En el año de 1694 qué Banco se creó?

En 1694, se creó el Banco de Inglaterra, que sería el más famoso banco central durante casi 300 años.

5. ¿Quién creo en 1800 el Banco Francés?

Fue creado por Napoleón en 1800 para estabilizar la moneda después de la hiperinflación del papel moneda generado durante la Revolución Francesa y las conquistas napoleónicas.

6. ¿En qué siglo y años Estados Unidos creó el Banco Estados Unidos?

A principios del siglo XIX, Estados Unidos creó el Banco de los Estados Unidos (1791-1811) y luego un segundo Banco de los Estados Unidos (1816-1836) tras el cierre del primero. Ambos bancos se establecieron siguiendo el modelo del Banco de Inglaterra. Pero a diferencia de los británicos, los estadounidenses tuvieron una desconfianza profunda de cualquier concentración de poder financiero en general, y de los bancos centrales, en particular.

7. Entre 1861 -1865 Abraham Lincoln creo el primer Banco y único Banco Central ¿Cuál erasu objetivo?

Abraham Lincoln creó el primer y único Banco Central público del país, con el objetivo de garantizar los pagos de guerra.

8. ¿Cuál otras funciones cumplían los Bancos en el siglo XIX?

Se exigió la creación de una estructura crediticia flexible que fuera capaz de dar respuestas a las empresas de ferrocarril y a los barcos de vapor,

Explanation:

. ¿Dónde emergieron los Bancos Centrales?

El primer banco central fue creado por el Parlamento Sueco en 1668, siendo su principal acreedor la Corona Sueca. Esto generó inflación y crisis financieras. Después de un siglo, en 1779, la ley fue modificada, obligando al Banco a que la masa monetaria fuese respaldada por oro en una proporción fija. Sin embargo, comenzó la guerra con Rusia y se regresó a su origen violando el precepto de estabilidad que confería ese patrón oro.

2. ¿En qué siglo los Bancos Centrales se potenciaron?

La historia de la banca central se remonta al menos al siglo XVII, con la fundación de la primera institución reconocida como un banco central, el Banco de Suecia.

3. ¿El Banco de Suecia en qué siglo fue fundado?

El primer banco central fue creado por el Parlamento Sueco en 1668.

4. ¿En el año de 1694 qué Banco se creó?

En 1694, se creó el Banco de Inglaterra, que sería el más famoso banco central durante casi 300 años.

5. ¿Quién creo en 1800 el Banco Francés?

Fue creado por Napoleón en 1800 para estabilizar la moneda después de la hiperinflación del papel moneda generado durante la Revolución Francesa y las conquistas napoleónicas.

6. ¿En qué siglo y años Estados Unidos creó el Banco Estados Unidos?

A principios del siglo XIX, Estados Unidos creó el Banco de los Estados Unidos (1791-1811) y luego un segundo Banco de los Estados Unidos (1816-1836) tras el cierre del primero. Ambos bancos se establecieron siguiendo el modelo del Banco de Inglaterra. Pero a diferencia de los británicos, los estadounidenses tuvieron una desconfianza profunda de cualquier concentración de poder financiero en general, y de los bancos centrales, en particular.

7. Entre 1861 -1865 Abraham Lincoln creo el primer Banco y único Banco Central ¿Cuál erasu objetivo?

Abraham Lincoln creó el primer y único Banco Central público del país, con el objetivo de garantizar los pagos de guerra.

8. ¿Cuál otras funciones cumplían los Bancos en el siglo XIX?

Se exigió la creación de una estructura crediticia flexible que fuera capaz de dar respuestas a las empresas de ferrocarril y a los barcos de vapor,

If someone said to you, “Pseudocode is a waste of time! It’s just more work because you end up writing the same program twice,” how would you explain the benefits of pseudocode?

Answers

Answer:

It allows the designer to focus on main logic without being distracted by programming languages syntax.

* Since it is language independent, it can be translated to any computer language code.

* It allows designer to express logic in plain natural language.

* It is easier to write actual code using pseudocode.

* Unlike algorithms, pseudocodes are concise so pseudocodes are more readable and easier to modify.

Explanation:

PLS HELP ASAP suppose you want to find pages that contain the word German but not the word shepherd. which search would achieve this?
German OR shepherd
German- shepherd
"GERMAN shepherd"
"German"+"shepherd"

Answers

Answer: German- shepherd

Explanation:

If I want to find pages that contain the word German but not the word shepherd, the search would achieve this would be German- shepherd.

It should be noted that other options such as German OR shepherd, "GERMAN shepherd" and "German"+"shepherd" all mean that pages containing the words German and also shepherd will be found.

The (-) sign simply means that not. Therefore, the correct option is German - shepherd which means German but not shepherd.

Answer:

German- shepherd

Explanation:

What are some other projects or things you do in your life (other than writing an essay) where you use an iterative process?

Answers

Answer:The iterative design process occurs in a continuous cycle involving three unique stages: formulate, test, evaluate. These core elements make up the basic progression in which the development of a game will follow. The rest is simply rinse and repeat

Explanation:

Answer:

Coke has experimented with different formulations of its popular Coca Cola product, including the failed New Coke iteration. The aim is to achieve the best tasting product that customers like.

A company that is operating a factory or assembly line may experiment with different methods of arranging the assembly line or with different production methods. Each time the production process is changed, this is a different iteration. Each time the order of operations and procedures are changed, this is a different iteration. The goal is to achieve the fastest, best and most optimal method of creating a product.

A musician may start with one version of a song and refine it, making changes to a note here and there or changing the tempo and speed. Many different iterations of a song may be created this way until the optimal finished product has been created that sounds and works the best.

A cook may experiment with a recipe, tweaking the ingredients or changing different steps of the process slightly until the food tastes as good as it possibly can.

Microsoft has released multiple versions of the Windows operating system to add functionality for users and to correct bugs. Each different version is a different iteration of its operating system and the goal is for the next iteration to be better than the last.

Explanation:

Pick an example, and put it in your own words.

What storyboarding technique uses a combination of two techniques, and which techniques does it combine?
O A. hierarchical; wheel and linear
O B. linear; webbed and hierarchical
O C. webbed; linear and hierarchical
© D. wheel; webbed and linear

Answers

Answer:

d

Explanation:

Answer:

They're right, it's c:  webbed; linear and hierarchical

Explanation:

Edmentum, I got it right.

I need help writing the algorithm I know how to do the flow chart for the first one but I’m not sure if the second question is a for loop

Answers

Answer:

The algorithm is as follows:

(a) Sales and commission

1. Start

2. Input Sales

3. Commission = 0.30 * Sales

3. If sales >= 4000.00 then

3.1   Commission = 0.60 * Sales

4. End If

5. Print Commission

6. Stop

(b) Amount of Rainfall

1. Start

2. Days = 1

3. Total = 0.0

4. While Days <= 31

4.1. Input Rainfall

4.2. Total = Total + Rainfall

4.3. Days = Days + 1

4.4. End If

5. Print Total

6. Stop

See attachment for flowchart

Explanation:

(a) Sales and commission

This begins the algorithm

1. Start

This gets sales from the user

2. Input Sales

This calculates the commission based on 30% (i.e. for sales < 4000)

3. Commission = 0.30 * Sales

This checks if sales is greater than or equal to 4000

3. If sales >= 4000.00 then

This calculates the commission as 60% of Sales

3.1   Commission = 0.60 * Sales

This ends the if condition

4. End If

This prints the calculated commission

5. Print Commission

This ends the algorithm

6. Stop

(b) Amount of Rainfall

This begins the algorithm

1. Start

This initializes the number of days to 1

2. Days = 1

This initializes total rainfall to 0

3. Total = 0.0

The following while loop is repeated until day 31st

4. While Days <= 31

This gets input for Rainfall from the user

4.1. Input Rainfall

This calculates the total rainfall

4.2. Total = Total + Rainfall

This increments the number of days

4.3. Days = Days + 1

This ends the if statement

4.4. End If

This prints the total rainfall

5. Print Total

This ends the algorithm

6. Stop

In French class, Blue puts on a visor and the environment changes to that of a café in Paris. Which of the following terms describes this kind of technology?

Answers

Answer:

virtual reality

Explanation:

Answer:

virtual

Explanation:

virtual and realyty

What percentage of teens say they have witnessed cyberbullying?

50

95

70

35

Answers

A Majority of Teens Have Experienced Some Form of Cyberbullying. 59% of U.S. teens have been bullied or harassed online, and a similar share says it's a major problem for people their age

254 × (×) igual 20×()682883993

PLEASE HELP ITS TIMED Ishmael would like to capture a selected portion of his screen and then capture actions he performs on that selected portion. What should he do?


Use the Video from My PC command.

Use the Insert Screen Recording control.

Create a poster frame.

Use an embed code.

Answers

Answer:

Option B

Hope this Helps!!! :)


What is programming?​

Answers

Answer:

using code etc to change how something works out make it work how you want it to. mostly code but sometimes circuit boards and stuff like that.

Explanation:

see above

Answer:

Programming is the process of creating a set of instructions that tell a computer how to perform a task.

WHAT IS MULTIMEDIA SUPPOSED TO MEAN ???

Answers

Answer:

using more than one medium of expression or communication

Answer:

It basically means using more than one expression or form of communication

Explanation:

6. A presentation is widely used to present and effectively​

Answers

Answer:

A Presentation is a collection of slides arranged in a systematic order. 2) A presentation ...

Explanation:

Please give thanks to all my answers and please mark as brilliant and please follow me

What is the output of this Python code?
def guess(a, b, c):
if a > b and a < c:
print(True)
else:
print(false)
X = 45
y = 31
z = 78
guess(x, y, z)

Answers

Answer:

True

Explanation:

in function guess:- a = x; b = y; c = z

so 45 > 31 AND 45 < 38

since both the stements are true

True is printed

Enumerate the steps on how to set-up the CD-ROM as the first boot device.​

Answers

Answer:

Explanation:

1)Press boot key ( Del or specified key)

to enter BIOS setup utility.

2) using the direction keys, make selection of "Advanced BIOS Features"

3)then access Advanced BIOS setting by pressing Enter key

4. Using up/ down arrow keys Select "First Boot

Device"

.

5) Using up and down keys, select "CD-ROM "

6. go back to "BIOS setting screen" by Pressing ESC key

7. Select " Save & Exit Setup"

.

Which option is the default when creating appointments and meetings in a user’s own calendar as it relates to Free/Busy information that others will see when looking at the user’s calendar?

a. Free
b. Working Elsewhere
c. Busy
d. Tentative
I only have 10 minutes left so please help fast!

Answers

Answer:

C !

Explanation:

Answer:

Busy

Explanation:

What line of code would you edit if you wanted a bigger sprite?This is computer science.Pick branliest if right


A.3

B.4

C.5

D.You have to edit the picture itself

Answers

pretty sure the answer is a-3

Answer:

C. 5

Explanation:

Line 3 refers to the positioning of the sprite.

Line 4 refers to the animation preset of the sprite.

Line 5 is the correct choice because in the code it references scale and a value which can be modified to make the sprite bigger. For example, from 0.3 to 0.5

If I'm right please give brainliest, thanks

Which finger is used to press SHIFT key while typing!
A. Little finger
B. Thumb
C. Index finger
D. Ring Finger ​

Answers

Answer:

Little Finger (A)

Explanation:

it would be A. little finger i’m pretty sure

Explain in not less than 3 Sentences

1. Decimal Number System


2.Binary Number System​

Answers

Answer:

The Decimal Numeral system :-

It is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers of the Hindu–Arabic numeral system.

Binary Number system :-

It is a number expressed in the base-2 numeral system , which uses only two symbols: typically "0" and "1". The base-2 numeral system is a positional notation with a radix of 2. Each digit is referred to as a bit, or binary digit.

hope it helps you...

Need help ASAP

Thankss + BRAINLIST only for correct answers

Answers

Why visit it?
For entertainment, purely for the user to enjoy the content that has been produced for them.

Why was it made?
Netflix is a subscription based service that has been made to allow users to stream TV shows and other entertainment sources. It was made for leisure.
Other Questions
Two particles, A and B, are moving in the directions shown. What should be the angle theta so that vB/A is minimum? 0degree 180 degree 90 degree 270 degree evaluate the integral by reversing the order of integration. 16 4 3 0 x y e dxdy if the exact serial dilution of tetracycline is performed, but an organism less resistant to the drug was inoculated into the growth medium, then the minimum inhibitory concentration of tetracycline for that organism would choose one: Which of the following is not a major global powerhouse in car assembly?ANSWER:A) GermanyB) SpainC) United StatesD) FranceE) Italy explain how it is possible for a firm to report rising ni each year yet continue to need more working capital financing from a bank. Consider the set X = {f:R->R|6f'' - f'+ 2f=0}, prove that X is a vector space under the standard pointwise operations defined for functions. a diagram of the female reproductive structures is shown below. which structure is correctly paired with its function the most time-consuming part of an archeological investigation is the survey. excavation. analysis. A simple pendulum is swinging back and forth through a small angle, its motion repeating every 1.13 s. How much longer should the pendulum be made in order to increase its period by 0.29 s? the total pressure of an o2-ar-he gas mixture is 755 mmhg. if the partial pressure of ar is 174 mmhg and the partial pressure of he is 389 mmhg, then the partial pressure of o2 is - To the right is a partial table of OECD ball member countries using data from the World Bank, with the countries ranked ule according to their GDP per capita in 2014 (these numbers are reported in current U.S. dollars). Compute the ratio of GNI to GDP in each case. What does this imply about net factor income from abroad in each country? Compute the GNI rankings of these countries. Are there any major differences between the GDP and GNI rankings? What do these differences imply? monochromatic light is incident on a metal surface, and electrons are ejected. if the intensity of the light increases, what will happen to the ejection rate of the electrons? monochromatic light is incident on a metal surface, and electrons are ejected. if the intensity of the light increases, what will happen to the ejection rate of the electrons? Find two positive consecutive odd intergers such that the square of the first, added to 3 times the second is 24 In PQR, the measure of R=90, the measure of Q=7, and PQ = 9. 4 feet. Find the length of QR to the nearest tenth of a foot an ecosystem has an ecological efficiency of 10 percent. if the producer level contains 10,000 kilocalories of energy, how much energy does the tertiary consumer level contain? Using two INSERT statements, store in the database the fact that PC model 1100 is made by manufacturer C, has speed 3.2, RAM 1024, hard disk 180, and sells for $2499.b) Insert the facts that for every PC there is a laptop with the same manufacturer, speed, RAM, and hard disk, a 17-inch screen, a model number 1100 greater, and a price $500 more.c) Delete all PC's with less than 100 gigabytes of hard disk.d) Delete all laptops made by a manufacturer that doesn't make printers.e) Manufacturer A buys manufacturer B. Change all products made by B so they are now made by A. A 0. 500-kg glider, attached to the end of an ideal spring with force constant k = 450N/m, undergoes SHM with an amplitude of 0. 040 m. Compute (a) the maximum speedof the glider; (b) the speed of the glider when it is at x = -0. 015 m; (c) the magnitude ofthe maximum acceleration of the glider; (d) the acceleration of the glider at x = -0. 015m; (e) the total mechanical energy of the glider at any point in its motion If the MPC in an economy is 0.5, government could shift the aggregate demand curve rightward by $60 billion by Multiple Choice 1. decreasing taxes by $60 billion. 2. increasing government spending by $60 billion. 3. increasing government spending by $30 billion. 4. decreasing taxes by $120 billion. there was little immediate reaction to cade's report that lithium helped alleviate the symptoms of manic patients. this was because to help you easily identify sheets in a workbook, you can add _____ to the sheet tab. select one: alignment fonts color styles