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
Determine the distance between point (x1, y1) and point (x2, y2), and assign the result to points Distance. The calculation is:
Dima020 [189]

Answer:

2 feet

Explanation:

3 0
3 years ago
This is not an appropriate business use for a wiki. editing corporate documents getting customer feedback project management pub
ivolga24 [154]

The correct answer is A: editing corporate documents.

Further Explanation:

The reason why editing corporate documents would not be an appropriate use of business for wiki would be that false information could be used. This would be released to customers and they would not have the correct information. Anyone can edit Wiki and this can cause confusion.

For business, all information released should be based on facts and researched information. There are numerous other web pages that can be used for a legitimate business purposes.

Learn more about Wiki at brainly.com/question/11936997

#LearnwithBrainly

7 0
3 years ago
As they relate to databases, which of the following describes forms? A. Forms are specified conditions used for retrieving recor
lora16 [44]
The answer to this is B.
5 0
3 years ago
Read 2 more answers
What is the manufacturer’s specific ID for Intel Core?
Vlad1618 [11]
1c:eb:e6 Is the manufacturer’s specific ID
3 0
3 years ago
Plese give three examples of specilized servers.
MariettaO [177]
1.Extended border node (EBN)
2.Central directory server (CDS)
3.Branch extender (BEX or BrEx or BrNN)
5 0
3 years ago
Read 2 more answers
Other questions:
  • Match each of the following terms to its function:_________
    13·1 answer
  • Once your hard drive is installed what needs to be done to the drive and what do these two tasks do
    12·1 answer
  • "Suppose there is a class Alarm. Alarm has two class variables, code which contains a String value representing the code that de
    10·1 answer
  • Aaron has elaborate systems set up on his computer to remind him of all the things he has to do and when he has to do them. The
    12·1 answer
  • Host to IP address lookup and its reverse lookup option are very important network services for any size network. It is also how
    9·1 answer
  • Redundancy can be implemented at a number of points throughout the security architecture, such as in ________. Group of answer c
    12·1 answer
  • Ayuda necesito 7 objetos que se utilizan en la vida diaria
    8·1 answer
  • Describe all the steps a router goes through while deciding where to send the a packet. Explain why a router would choose one ro
    7·1 answer
  • 11.5 Code Practice edhesive
    10·2 answers
  • Where do animators work?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!