Top Posters
Since Sunday
g
1
New Topic  
Heff Heff
wrote...
Posts: 1330
Rep: 3 0
7 years ago
What is the value of donuts after the following code executes?

   int donuts = 10;
   
   if (donuts = 1)
       donuts = 0;
   else
       donuts += 2;

A) 0
B) 10
C) 12
D) 1
Textbook 
Database Concepts

Database Concepts


Edition: 7th
Authors:
Read 177 times
1 Reply
Replies
Answer verified by a subject expert
bestavinashbestavinash
wrote...
Top Poster
Posts: 675
Rep: 7 0
7 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

Heff Author
wrote...

7 years ago
Thank you, thank you, thank you!
wrote...

Yesterday
This calls for a celebration Person Raising Both Hands in Celebration
wrote...

2 hours ago
Smart ... Thanks!
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  221 People Browsing
Show Emoticons
:):(;):P:D:|:O:?:nerd:8o:glasses::-):-(:-*O:-D>:-D:o):idea::important::help::error::warning::favorite:
Related Images
  
 406
  
 945
  
 666
Your Opinion
Which country would you like to visit for its food?
Votes: 895