Question: Question 6 Why should programmers avoid making the following comparison with double x ? x = = 0 . 3 Because variables should not be
Question
Why should programmers avoid making the following comparison with double
Because variables should not be compared with literals
Because the should come first:
Because doubles should not be compared with integers
Because may not be exactly represented as
Given string str and string str which expression is true?
strHi;
str "Hello";
str str
Comparison not possible
str str
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
