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
nevsk [136]
3 years ago
6

What’s the difference between an entry-condition loop and an exit-condition loop? Which kind is each of the C loops? Provide a d

etailed response with examples
Computers and Technology
1 answer:
egoroff_w [7]3 years ago
7 0

Explanation:

The difference between entry condition loop is and exit - condition loop is that the entry condition loops first checks the condition to enter the loop body if the condition true then the loop body is executed otherwise loop body is not executed while the exit-condition loops first executes the loop body and then the condition for the loop is checked.

There are three loops in C that are as following:-

  1. For
  2. While
  3. Do While

Among these three loops While and For loops are entry condition loops and Do While loop is exit condition loop.

For example:-

for(int i=0;i<10;i++)

{

    printf("%s","John Doe\n");

}

If the initial value of i should have been 10 then loop body didn't had executed.

int i=0;

while(i<4)

   {

       printf("%s","John Doe\n");

   }

If you try to run this while loop nothing will print on the screen because the condition is false.So the compiler will not enter the loop body and will skip over it.

int i=5;

   do{

       printf("%s","John Doe\n");

   }while(i<4);

Even if the condition is false.You will see that the John doe have been printed one time on the screen because first the body is executed then the condition is checked.

You might be interested in
Can u tell me the answers to this table ​
Sholpan [36]

: im sorry what dose it say it is too blurry

6 0
3 years ago
It is important to avoid using a person’s title in an email to avoid offending him or her.
Nataly [62]

The answer to this is FALSE. I just took the test & got 100%.

3 0
3 years ago
Read 2 more answers
IBM’s system that is built on the middle ground approach to AI.
Norma-Jean [14]

Answer:

IBM Watson is AI for business. Watson helps organizations predict future outcomes, automate complex processes, and optimize employees' time.

Explanation:

6 0
3 years ago
Which method would be the BEST to protect security information and event management (SIEM) log data at rest from tampering by au
AnnyKZ [126]

Answer:

Option B (Deployment of write once read many (WORM) drives) is the appropriate one.

Explanation:

  • SIEM application goods/services consolidate safety information management (SIM) with security event management (SEM) throughout the area of device protection. We include an overview including its known vulnerabilities created by users and network equipment in actual environments.
  • No quantity of administrative intervention will alter the substance on something like a WORM disc, even by physical disc disruption or failure. That would be the better-suggested choice.
7 0
4 years ago
Send me friend rq ;)
kondaur [170]

Answer:

shore

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • Conformity is the acceptance of culturally approved goals and the means for achieving these goals.
    6·2 answers
  • Simpson is trying to solve an equation related to converting a decimal number to its hexadecimal form. He decides to utilize the
    6·1 answer
  • No workplace is immune to the threat of workplace violence. true or false
    9·2 answers
  • You're the network administrator for a company that has just expanded from one floor to two floors of a large building, and the
    13·1 answer
  • Which principle suggests that specific single responsibility interfaces are better than one general purpose interface?
    13·1 answer
  • Need to know? Anyone feel like helping me not fail
    13·1 answer
  • Write the code for the following problem.
    9·1 answer
  • Complete the sentence.
    10·1 answer
  • What is edge computing?
    9·1 answer
  • Question 4 (5 points) If your social media accounts are___________, college admissions representatives can look at your social m
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!