Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Mock Exam Errata
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Mock Exam Errata
Rules Roundup #108
Yuri Sforza
Greenhorn
Posts: 15
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Given x=y--; Which of these will be true AFTER execution?
x == y
x < y
x > y
Supposed answer is x>y but what about the following:
byte y = -128; byte x = y--;
--
Y. Sforza
Valentin Crettaz
Author & Gold Digger
Posts: 7617
6
I like...
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
x will be -128 and y = 127, and thus, y > x would be the correct answer.
My Linked In
Yuri Sforza
Greenhorn
Posts: 15
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes, of course. This means that there is no correct answer
(which is ALWAYS true) for the question #108.
--
Y. Sforza
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
well a doubt !
Conversion byte->int
Recursive number problem
Wrapper class constructors
More...