Top Posters
Since Sunday
5
o
5
4
m
4
b
4
x
4
a
4
l
4
t
4
S
4
m
3
s
3
New Topic  
pagnor pagnor
wrote...
Posts: 1540
6 years ago
What will be the output of the following code segment after the user enters 0 at the keyboard?

   int x = -1;
   cout << "Enter a 0 or a 1 from the keyboard: ";
   cin >> x;
   if (x)
       cout << "true" << endl;
   else
       cout << "false" << endl;

A) true
B) Nothing will be displayed.
C) false
D) x
Textbook 
Database Concepts

Database Concepts


Edition: 7th
Authors:
Read 57 times
1 Reply
Genuine Coder
Replies
Answer verified by a subject expert
bestavinashbestavinash
wrote...
Top Poster
Posts: 675
Rep: 7 0
6 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
Thanks for your help!!
wrote...

Yesterday
Thanks
wrote...

2 hours ago
this is exactly what I needed
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1032 People Browsing
Related Images
  
 122
  
 279
  
 241
Your Opinion
How often do you eat-out per week?
Votes: 79

Previous poll results: Who's your favorite biologist?