natalie0908
08.07.2020 •
Computers and Technology
What is the value of the var variable after the execution of the following snippet of code:
int var;
var = -1;
var = var - 1;
var = var - var;
Solved
Show answers
More tips
- F Food and Cooking How to cook crayfish? Everything you need to know...
- G Goods and services LED-подсветка в LCD-телевизорах: 5 причин, почему она лучше других технологий...
- P Photography and Videography Understanding HDR: How It Works and Why You Need It...
- P Photography and Videography How to Choose the Perfect Photo Paper for Your Images?...
- C Computers and Internet How to Choose an Uninterruptible Power Supply (UPS) for Your Computer: Expert Tips...
- S Science and Technology How to choose a home theater system?...
- A Auto and Moto How to Choose a Car Wash? Tips and Recommendations...
- A Animals and plants How ants survive winter: exploring the secrets of their winter life...
- C Construction and repair How to Choose the Best Underfloor Heating?...
- S Sport When is the Champions League final?...
Answers on questions: Computers and Technology
- S Social Studies Choose the word or phrase that best completes each sentence about the influence of Greek culture. Alexander the Great local culture by allowing local people to . This meant that...
- M Mathematics A total of 76 groom s guests and 64 bride s guests attended a wedding. The bride s guest s used 96 issues. The groom guests used 152 issues. Calculate approximately how many issues...
- E English Eating disorders can be life-threatening and can begin in early adolescence. True False...
- M Mathematics A jar contains 10 red marbles, 8 green marbles, 5 blue marbles, and 6 white marbles. You also have a number cube. What is the probability of choosing a red marble and rolling an...
- M Mathematics Helpppppp pros only helppppppp me plzzzzzzzzzzz ill reporte you if you do bad qweshtones...
- H History This information-sharing network began to evolve in the mid-Twentieth Century as a United States Government project to help the military communicate better, though now it can be...
- M Mathematics MULTIPLE CHOICE: A. x2 + 1 = 2x − 3 B. x2 – 2x − 1 = 3 C. x2 + 2x − 1 = 3 D. x2 + 2x − 1 = -3...
- M Mathematics Solve 1/4 + 3/5 - 3/10...
- M Mathematics Write a recursive formula to describe the sequence: 1, 3, 7, 13......
- M Mathematics What is the average rate of change for this quadratic function for the interval from x = 1 to x = 3? -5 5 - 10...
Ответ:
The value of var is 0
Explanation:
Given:
The code snippet above
Required
Find the value of var after program execution
This line declares var as type integer
int var;
This line initializes var to -1
var = -1;
This line subtracts 1 from var; var - 1 = -1 -1 = -2
var = var - 1;
At this stage the value of var is -2
This line subtracts the value of var from var; i.e. -2 - (-2) = -2 + 2 = 0
var = var - var;
At this stage, the value of var is 0
Ответ:
- Have a disaster plan ready
-go to the basement
-lie in a ditch or low lying area
Explanation: i took it