main () { int x [100] = {0); int count = 0; int x [count] = count 5; count ; pause; } // end main

Answers

Answer 1

The code snippet has syntax errors such as a missing closing brace, invalid assignment statement, and an incomplete statement. Additionally, there are logical issues with variable usage and unrecognized keywords.

What are the issues in the given code snippet?

The given code snippet appears to have several syntax errors and logical issues.

There is a syntax error in the array initialization `int x[100] = {0);`, where the closing parenthesis should be a closing brace `}`.

The variable `count` is initialized to 0 but is not used in the subsequent code.

The line `int x[count] = count 5;` seems to have a syntax error and is not a valid assignment statement.

The statement `count ;` appears to be incomplete and does not serve any purpose.

The `pause` statement is not a recognized keyword in C and would result in a compilation error.

Overall, the code needs to be revised and corrected to achieve the desired functionality.

Learn more about code snippet

brainly.com/question/30471072

#SPJ11


Related Questions

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

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.

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

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.

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 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.

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:

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:

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:

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"

.

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 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

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.

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!!! :)

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,

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...

a collection of logically related instructions is called _______​

Answers

Answer:

Data Base from what I know

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:

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.

A type of topology in which all the systems a connected a main cable ​

Answers

Answer:

Bus topology uses one main cable to which all nodes are directly connected. The main cable acts as a backbone for the network. One of the computers in the network typically acts as the computer server. The first advantage of bus topology is that it is easy to connect a computer or peripheral device.

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

___________ is a computer programming language.

Answers

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

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 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.

Para que se utilizan las siguientes plataformas: Matlab, Labview, VisualBasic, Mplab, Micropic, PicCompiller

Answers

Answer:

MATLAB (abreviatura de MATrix LABoratory, «laboratorio de matrices») es un sistema de cómputo numérico que ofrece un entorno de desarrollo integrado (IDE) con un lenguaje de programación propio (lenguaje M). Está disponible para las plataformas Unix, Windows, macOS y GNU/Linux.

Entre sus prestaciones básicas se hallan la manipulación de matrices, la representación de datos y funciones, la implementación de algoritmos, la creación de interfaces de usuario (GUI) y la comunicación con programas en otros lenguajes y con otros dispositivos hardware.

LABVIEW (acrónimo de Laboratory Virtual Instrument Engineering Workbench) es una plataforma y entorno de desarrollo para diseñar sistemas, con un lenguaje de programación visual gráfico pensado para sistemas hardware y software de pruebas, control y diseño, simulado o real y embebido.

Visual Basic (VB) es un lenguaje de programación dirigido por eventos, desarrollado por Alan Cooper para Microsoft. Este lenguaje de programación es un dialecto de BASIC, con importantes agregados. Su primera versión fue presentada en 1991, con la intención de simplificar la programación utilizando un ambiente de desarrollo.

MPLAB es un editor IDE gratuito, destinado a productos de la marca Microchip. Este editor es modular, permite seleccionar los distintos microcontroladores soportados, además de permitir la grabación de estos circuitos integrados directamente al programador.

MICROPICUn PIC es un circuito integrado programable (Programmable Integrated Circuited), el cual contiene todos los componentes para poder realizar y controlar una tarea, por lo que se denomina como un microcontrolador. Los PIC son una familia de microcontroladores tipo RISC fabricados por Microchip Technology Inc. y derivados del PIC1650, originalmente desarrollado por la división de microelectrónica de General Instrument.

PICCOMPILER

El Portable C Compiler o Compilador de C Portable (también conocido como pcc o, algunas veces, como pccm - máquina de compilador de C portable) fue uno de los primeros compiladores para el lenguaje de programación C escrito por Stephen C. Johnson de los Laboratorios Bell a mediados de los 70, basado, en parte, en las ideas de un trabajo previo de Alan Snyder en 1973.

Explanation:

MATLAB (abreviatura de MATrix LABoratory, «laboratorio de matrices») es un sistema de cómputo numérico que ofrece un entorno de desarrollo integrado (IDE) con un lenguaje de programación propio (lenguaje M). Está disponible para las plataformas Unix, Windows, macOS y GNU/Linux.

Entre sus prestaciones básicas se hallan la manipulación de matrices, la representación de datos y funciones, la implementación de algoritmos, la creación de interfaces de usuario (GUI) y la comunicación con programas en otros lenguajes y con otros dispositivos hardware.

LABVIEW (acrónimo de Laboratory Virtual Instrument Engineering Workbench) es una plataforma y entorno de desarrollo para diseñar sistemas, con un lenguaje de programación visual gráfico pensado para sistemas hardware y software de pruebas, control y diseño, simulado o real y embebido.

Visual Basic (VB) es un lenguaje de programación dirigido por eventos, desarrollado por Alan Cooper para Microsoft. Este lenguaje de programación es un dialecto de BASIC, con importantes agregados. Su primera versión fue presentada en 1991, con la intención de simplificar la programación utilizando un ambiente de desarrollo.

MPLAB es un editor IDE gratuito, destinado a productos de la marca Microchip. Este editor es modular, permite seleccionar los distintos microcontroladores soportados, además de permitir la grabación de estos circuitos integrados directamente al programador.

MICROPICUn PIC es un circuito integrado programable (Programmable Integrated Circuited), el cual contiene todos los componentes para poder realizar y controlar una tarea, por lo que se denomina como un microcontrolador. Los PIC son una familia de microcontroladores tipo RISC fabricados por Microchip Technology Inc. y derivados del PIC1650, originalmente desarrollado por la división de microelectrónica de General Instrument.

PICCOMPILER

El Portable C Compiler o Compilador de C Portable (también conocido como pcc o, algunas veces, como pccm - máquina de compilador de C portable) fue uno de los primeros compiladores para el lenguaje de programación C escrito por Stephen C. Johnson de los Laboratorios Bell a mediados de los 70, basado, en parte, en las ideas de un trabajo previo de Alan Snyder en 1973.

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

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:

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:

# 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")

Other Questions
A child with diabetes insipidus will be receiving injectable vasopressin when discharged from the hospital. What is the most important step when teaching injection techniques Vapor lock is likely to occur in ________ altitudes. sea level desert lower higher Identify the coordinates of the vertices after the transformation A server serves alcohol to a young-looking patron who presented a fake id that appeared to be valid. who has most likely committed a crime? rbs A client is being treated for histoplasmosis with amphotericin B. The nurse has completed a comprehensive assessment of the client and should report what assessment finding How does host based intrusion detection differ from nework based intrusion detection? what are the pros and cons of each? please help i need help solving this how does precipitation helps in formation of soil The distaste and aversion that people feel toward working in groups is known as _____. 17Post Test: Transformations and CongruenceSelect the correct answer from each drop-down menu.Consider Undefined control sequence \triangle HJI.HTriangle HJIistriangle HJI, the triangles#triangle EFG. Since triangle EFGusesResetNext What obstacles did leaders and participants in the montgomery bus boycott face? complete the chart below to answer this questions about some of the different parties involved. Someone help me please Can someone help me out with these problems and show work please !! IM IN A HURRY PLEASE HELP ME QUESTION IS DOWN BELOW WORTH 15 POINTS each For accommodation of persons with special needs, call 555-555-1234, tty 711 is an example of the disclaimer that must appear in advertising for what type of event?. 3. Which of the following best describes the reflection in the graph belowReflection across y = -xReflection across x = 2Reflection across x = 1Reflection across y = x A company's year-end data shows the following amounts. Current assets $65,000 Current liabilities $25,000 Net income $7,500 Net sales $125,000 Total assets $150,000 Based on this information, what is the company's current ratio? Explain how the American Revolution and the Civil War expanded democratic principles and American ideals Find the equation of a circle centered on the origin going through the point (-5,3) an economic research commission claimed that among the 500 stores there are 308 dealing with european companies, 266 dealing with asian companies 103 dealing with both sides regularly and 59 not dealing with either side. i) what is the probability that the stores deal with european or asian companies? ii) what is the probability that the stores do not deal with european companies? iii) what is the probability that the stores only deal with asian companies? iv) what is the probability that stores do not deal with only one type of company