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
umka21 [38]
3 years ago
12

If a programming language does not use short-circuit evaluation, what is the output of the following code fragment if the value

of myInt is 0? int other = 3, myInt; if(myInt != 0 && other % myInt != 0) printf("other is odd\n"); else printf("other is even\n");
Mathematics
1 answer:
mezya [45]3 years ago
3 0

Answer:

other is even.

Step-by-step explanation:

Since the value of myInt variable is assumed to be 0 and we have other =3. In the if condition the expression is true only when the myInt is not equal to zero and and the remainder of other/myInt is not equal to zero (%modulus operator provides the remainder). myInt is 0 hence the expression returns false and the else block is executed so it prints other is even.

You might be interested in
How do you solve g= y-c+x for x
SOVA2 [1]
To solve for x just isolate x by moving the other variables so....:
First add c to both sides
g+c= y+x
Subtract y from both sides
g+c-y= x
That should be your final answer (we cannot come up with an actual digit for x because there are no numbers in this equation we simply can make an equation for x)
8 0
3 years ago
Read 2 more answers
A sporting goods store ordered 144 cans if tennis balls
lapo4ka [179]
I need to know the rest of the question in order to help you! :D
7 0
3 years ago
Margie says the set of numbers, 0.1, -1, -21 4
adoni [48]

Answer:

i dont know what the question is, please give better examples so i can give more feedback into helping..

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
The number of mosquitoes at the beach has increased by 50% every year since 2012. In 2012, there were 2,500 mosquitoes. How many
xxTIMURxx [149]

Answer:

Step-by-step explanation:

2012 = 2500

2500 x .50 = 1250

2500 + 1250

2013 = 3750

3750 x .50 =

3750 + 1875

2014 = 5625

5625 x .50 = 2812.5

5625 + 2812.5

2015= 8437.5

8437.5 x .50 = 4218.75

8437.5 + 4218.75

2016= 12656.25

12656.25 x .50 = 6328.125

12656.25 + 6328.125

2017= 18984.375

18984.375 x .50 = 9492.1875

18984.375 + 9492.1875

2018= 28,476.5625‬

3 0
3 years ago
13 Pts<br><br> PLEASE SOMEONE HELP ME WITH THIS QUESTION<br> PLZ EXPLAIN<br><br> THANK U
AlexFokin [52]
It's the third one and the last one are the only ones that make immediate sense.
4 0
3 years ago
Read 2 more answers
Other questions:
  • if there are 1,254 males born and 1,462 females what's the probability the next baby born will be a boy
    12·2 answers
  • Someone who knows the remainder theorem help!​
    10·1 answer
  • Caroline bought 20 shares of stock at 10 1/2, and after 10 months the value of the stocks was 11 1/4. If Caroline were to sell a
    6·1 answer
  • 3 less than c in numbers
    8·1 answer
  • BRAINLEIST ANSWER TO WHOEVER GIVES ME CORRECT ANSWER FIRST
    6·1 answer
  • The team first experiments with changing the position of the curved pit. In the computer program, the
    6·1 answer
  • Welp❌❌❌❌❗️⭕️welp welp
    13·1 answer
  • To solve the equation-10n4 6n2 - 3 = 0 with the quadratic formula, what values
    6·1 answer
  • Plz help it’s due tonight!!!
    9·1 answer
  • Please answer both questions right answers get ✨brainlest!✨
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!