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
What is the difference between the wiring configurations for a residential, 8-position, 8-contact (8P8C) modular plug and jack i
Molodets [167]

The key variance between how the two wiring configurations described are in the way that the pair numbers three and four are situated or placed.

<h3>What is Service Order Codes (USOC)?</h3>

The above refers to a system of specifications that was created by Bell Systems company to enable the connection of equipment used in buildings both in homes and in public places.

The ANSI/TIA/EIA 570-B on the other hand is the standard that the cabling for telecommunications must meet.

Hence, the primary variance between how the configuration or settings of the wiring for a residential, 8-position, 8-contact (8P8C) modular plug and jack in the Universal Service Order Codes (USOC) and ANSI/TIA/EIA 570-B is in the way that the pair numbers three and four are situated or placed.

Learn more about wiring at:

brainly.com/question/25922783
#SPJ4

7 0
2 years ago
What is a benefit of an account with interest?
GrogVix [38]

You improve your credit history

6 0
3 years ago
William has an internet connection that does not allow him to make calls when connected to the Internet. What internet service c
saul85 [17]
D. Satellite internet access
6 0
3 years ago
Read 2 more answers
What attracts attention and adds spatial depth to a two-dimensional design.
Harlamova29_29 [7]

Answer:

Hi,

<u>Visual weight</u> attracts attention and adds spatial depth to a two-dimension design.

Explanation:

Visual weight is a measure of the force a piece of art exerts on a viewer/ observer.When a piece of art attracts the eye more, we say the visual weight of that element is higher.Visual weight is measured by observing some features like size, color, position, orientation, shape and texture.

A large art piece will have more visual weight than a small art piece.Warm color such as red has more visual weight more than cool color such as yellow because warm colors tend to occupy the foreground in art pieces.Elements in an art piece that occupy the foreground have more visual weight than those occupying the background.Diminishing the size of an object on the art piece can help you attain spatial depth.

Best of Luck.

6 0
3 years ago
Star and peer-to-peer are types of
Naily [24]
Networks? i’m not sure, but i know peer-to-peer is a type of network. i’m not sure about lending though
3 0
3 years ago
Read 2 more answers
Other questions:
  • Forms are used to a provide a more user-friendly way to work with data in tables
    14·1 answer
  • Put the steps of the decision-making process in the correct order.
    12·1 answer
  • It is always better to run over and give more information when you are giving a presentation versus quitting on time.
    11·2 answers
  • ____ allows you to control how objects enter, move on and exit slides
    13·2 answers
  • George is sketching a wireframe representation of the home page of his website. What aspect of the home page would be impossible
    11·1 answer
  • Which of the following focuses on information related to disease identification, control, and prevention?
    10·1 answer
  • Who is on ig and would like to be friends?​
    8·2 answers
  • A student will not be allowed to sit in exam if his/her attendance is less than 75% .
    8·1 answer
  • Kaitlin likes a particular design theme, but she is not sure about every single color for bullets, backgrounds, etc. found in th
    7·1 answer
  • Discuss the concept of the “state of a process”. Give examples to illustrateyour answers?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!