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
Word documents contain how many sections by default?
Butoxors [25]

Answer:

Word documents contain one section by default

Explanation:

8 0
3 years ago
What are the paparazzi?
Roman55 [17]

Answer:

d.photographers who follow stars to take pictures

8 0
3 years ago
Why does my smoke detector keep beeping even after i change the battery?.
UkoKoshka [18]

Sometimes they just beep for no reason or the batteries are faulty

8 0
2 years ago
The term _____ best describes the level of technology skills needed in today’s business world.A: computer knowledgeB: computer f
Alja [10]

Answer:

The answer is "Option B"

Explanation:

The ability to learn and use basic computer hardware and software understanding to solve problems and to access information is known as computer fluency. and other options are not correct, that can be defined as follows:

  • In option A, computer knowledge is a basic general awareness, that helps the user to use the computer more fluently, that's why it is not correct.
  • In option C, It is an internal feature of the computer, that helps to transfer data, that's why it is not correct.
  • In option D, computer information is also known as data that is stored in the computer, that's why it is not correct.
6 0
3 years ago
2 what is deep learning?
lozanna [386]

Answer:

a type of machine learning based on artificial neural networks in which multiple layers of processing are used to extract progressively higher level features from data.

5 0
1 year ago
Other questions:
  • When a dynamic array with a class for a base type is declared, which constructor is called?
    5·1 answer
  • What identifies available computers through the internet?
    14·1 answer
  • Truncation is a keyword search technique that helps you find useful variations of a term or terms. You want to find books on the
    5·1 answer
  • Notice in the topology there are 3 network ranges that would be translated based on the ACL created. What will happen if more th
    6·1 answer
  • A typeface in which each character has the same width and is often used to display programming code is _
    8·1 answer
  • which statement draws an accurate comparison between social media marketing and conventional marketing?
    13·1 answer
  • There are many modes of remote visual communication. which is the most common mode
    5·1 answer
  • Suppose that a 2M x 16 main memory is built using 256kB x 8 RAM chips and memory is word addressable, how many RAM chips are nec
    6·1 answer
  • Today, scientists agree that good research is ethical in nature and is guided by basic respect for human dignity and safety. How
    6·1 answer
  • Which similar computer network components connect multiple devices?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!