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
Sav [38]
3 years ago
13

C programming:

Computers and Technology
1 answer:
Margaret [11]3 years ago
8 0
This code is a mess. C doesn't have a bool data type. True and False are actually an integer with the values 1 or 0 respectively.

#include <stdio.h>
void main( int argc, char* argv[] )
{
  int isteenager = 0;
  int kidage = 13;
  if( ( kidage >= 13 ) && ( kidage <= 19 ) )
       isteenager = 1;
  if( isteenager )
       printf( "teen\n" );
  else
       printf( "not teen\n" );
}
You might be interested in
Which of the following is true about main and secondary memory?
Deffense [45]

Answer:

Main memory is short term memory used by the CPU in processing commands, secondary memory is more permanent and used for storage.

Explanation:

Hey there so just a quick explanation here.

Main memory is not used for storage and secondary memory is not lost when the device's power is turned off.

That leaves you to two possibilities:

  • Main memory is more permanent and used for storage, secondary memory is short term memory is used by the CPU in processing commands.
  • Main memory is short term memory used by the CPU in processing commands, secondary memory is more permanent and used for storage.

The bolded bullet point is the correct answer because, main memory is what's know as RAM on your computer. It could either be 4GB, 8GB or maybe even 16GB of RAM. But this is known as Random Access Memory, this is data stored no on the hard drive but on the processor, only momentarily and used when the CPU needs it.

Secondary memory is your Hard Drive, typically 256GB, 500GB, or 1TB which is 1000GB's. But this data is stored on the Hard Drive or Solid State Drive (SSD) and it stays there even when the computer is shot off.

Kind of like our phones, we take pictures on a Friday night dancing with our friends, but our phone dies. Saturday morning we wake up and haha! We get to see all the funny pictures we took that night, so even though it shuts off, our data is saved and secured.

Hope this helps and Good luck !!

Happy Coding :)

8 0
3 years ago
1) The critical path of a network is the A) shortest time path through the network. B) path with the fewest activities. C) path
german

Answer:

D

Explanation:

source

https://hbr.org/1963/09/the-abcs-of-the-critical-path-method

7 0
3 years ago
4.
KATRIN_1 [288]

Income inequality and  Digital literacy prevents many people from having access to technology and the Internet.

<h3> How does digital system affect people's lives?</h3>

People do not have access to internet because of poor economic and social problems, such as fewer job opportunities, less competitive economies and others.

Other Factors such as digital literacy and low income levels, geographical restrictions, lack of zeal to use technology are known to have contributed to the digital division in the country.

Learn more about Income inequality from

brainly.com/question/24554155

6 0
3 years ago
Ms. Myers commented that _____ she slept in at the hotel was better than _____ she slept in at home.
nirvana33 [79]
The bed/ the bed is the answer
6 0
3 years ago
From the standpoint of the governing bodies of .com, why is it important that owners of individual domains maintain authoritativ
mixer [17]

Answer:

Explanation:

A subdomain is really important on the internet, we can categorize our blog, e-commerce or simple informative website, for example, if we want to have a blog and e.commerce of the same topic, we can have a subdomain for each website, if we separate our website, and we administrate our content is a good signal for SEO, we could have more promotion in search engine.

4 0
4 years ago
Other questions:
  • A(n) _______________ supplies one of the most critical aspects of docking stations, but in a smaller, more portable format: supp
    15·1 answer
  • A prime number is a number that is only evenly divisble by itself and 1.
    12·1 answer
  • This measures how close a biometric reading is to a prerecorded template
    11·1 answer
  • What is the output <br>this is a computer science question ​
    8·1 answer
  • Consider the following code.
    10·1 answer
  • Match each document to its respective type.
    8·2 answers
  • An experienced user has installed Oracle VM VirtualBox on her workstation and is attempting to use it to create a virtual machin
    6·1 answer
  • What does the digital living network alliance standardize
    12·1 answer
  • In computer science what are the methods used to protect the information stored by a piece of software called?
    10·1 answer
  • Adding a border to an image is one way to manipulate media to spice up a project. Where do you find the Picture Styles command t
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!