Top Posters
Since Sunday
y
2
m
2
m
2
u
2
m
2
B
2
M
2
e
2
k
2
N
2
y
2
m
2
New Topic  
pagnor pagnor
wrote...
Posts: 1540
7 years ago
What will the following program segment display?

   int funny = 7, serious = 15;
   funny = serious % 2;

   if (funny != 1)
   {
       funny = 0;
       serious = 0;
   }
   else if (funny == 2)
   {
       funny = 10;
       serious = 10;
   }
   else
   {
       funny = 1;
       serious = 1;
   }
   cout << funny << "   " << serious << endl;

A) 1  1
B) 10  10
C) 0  0
D) 7  15
E) None of these
Textbook 
Database Concepts

Database Concepts


Edition: 7th
Authors:
Read 390 times
2 Replies
Genuine Coder
Replies
Answer verified by a subject expert
jeckojecko
wrote...
Top Poster
Posts: 690
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

pagnor Author
wrote...
6 years ago
This website is legit, thank you!
Genuine Coder
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1341 People Browsing
Related Images
  
 26
  
 339
Your Opinion
Which country would you like to visit for its food?
Votes: 263

Previous poll results: What's your favorite coffee beverage?