Top Posters
Since Sunday
V
9
C
7
B
7
7
a
7
S
7
l
7
l
7
j
7
B
7
k
7
s
6
New Topic  
pagnor pagnor
wrote...
Posts: 1540
4 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


Edition: 7th
Authors:
Read 155 times
2 Replies
Genuine Coder
Replies
Answer verified by a subject expert
jeckojecko
wrote...
Top Poster
Posts: 690
Rep: 7 0
4 years ago
Sign in or Sign up in seconds to unlock everything for free
More questions for this book are available here
A
1

Related Topics

wrote...
4 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
  94 People Browsing
 216 Signed Up Today
Related Images
Your Opinion
Who's your favorite biologist?
Votes: 244

Previous poll results: Where do you get your textbooks?