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
Thepotemich [5.8K]
3 years ago
13

Can someone please help me to point out what's wrong with this C program:

Computers and Technology
1 answer:
eimsori [14]3 years ago
3 0

Answer:

Syntax error lies in almost every statement in the main function.

Explanation:

#include [ Didn't included the standard input/output library name in the header ]

Int count [ Didn't ended this declaration with ; and included lowercase datatype int ]

/* initialize count [ Didn't closed the comment with */ ]

count = 1 [ Didn't end the statement with ; ]

/* increment count */ [ correct ]

count++; [ correct ]

print the value of count */ [ Didn't initiated the comment with /* ]

So after removing the abovementioned errors, we get the correct code as:

#include <stdio.h>

int main (void) {

   int count;

   /* initialize count */

   count = 1;

   /* increment count */

   count++;

   /* print the value of count */

   printf("count = %d\n", count);

   return 0;

}

Run this code directly using this link: replit.com/languages/c

and see the output by yourself in realtime.

Thanks and Best Regards!

Umer

You might be interested in
USDA-APHIS Animal Care Resource Policy #12 "Considerations of Alternatives to Painful/Distressful Procedures" states that when a
katrin2010 [14]

Answer:

C. The specific field of study

C. change in anesthetic agent

Explanation:

In the consideration for the procedure, some information are required and examples are the strategy of the search/the database name. However, the area of study is not one of the information.

The animal use proposal can general be altered based on the type of change required. However, an anesthetic agent alteration is not a significant change.

6 0
3 years ago
One of the disadvantages of cable technology is that:
Artemon [7]

Answer:

The answer is letter C

Explanation:

Systems used by many providers require customers to share bandwidth with neighbors

8 0
3 years ago
write an assembly program that uses the output compare function of a timer to toggle an led every second
victus00 [196]

Answer:

...

Explanation:

8 0
2 years ago
What is the car on the right?
oksano4ka [1.4K]

looks like a rxc custom gt3 with a v6 *badass sport car*

3 0
3 years ago
Lesson 1 (4.0 points)
sesenic [268]


3. Hold down the CTRL, ALT, and DELETE keys simultaneously, click Task Manager option, then right-click the frozen program's name, and finally click the end task button.


8 0
3 years ago
Read 2 more answers
Other questions:
  • Which individual of the following would be most likely to be directly concerned with web security?
    14·2 answers
  • Suzy lives alone in New York, whereas her family lives in Florida. It is difficult for Suzy to visit her family very frequently,
    12·2 answers
  • When selecting font size in a document, ____ points equals one-inch-tall text?
    10·1 answer
  • Moderate changes to existing processes falls under the _________ analysis. Business Process Automation (BPA) Business Process Im
    5·1 answer
  • python Write a program that will take a file named Celsius.dat that contains a list of temperatures in Celsius (one per line), a
    9·1 answer
  • What is a traffic controller?what are its functions?
    13·1 answer
  • What is the code name for the 12 engineers who developed the ibm pc?
    8·1 answer
  • How to identify mistakes in a html code??​
    14·1 answer
  • Can anyone figure this out???? I need help ASAP!
    8·1 answer
  • what option can be used to create vpn connections that can be distributed to users' computers so that vpn clients do not have to
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!