Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Results of Java expressions for arithmetic operations

Fri Nov 11, 2011 12:34 pm

Ok now can u tell me how to solve dis whole question...i've got to do my assignment..please guide me..here's the question,


1.Assume that int a = 1 and double d = 1.0, and that each expression is independent. What are the
results of the following expressions?
a = 46 / 9;
a = 46 % 9 + 4 * 4 - 2;
a = 45 + 43 % 5 * (23 * 3 % 2);
a %= 3 / a + 3;
d = 4 + d * d + 4;
d += 1.5 * 3 + (++a);
d -= 1.5 * 3 + a++;



Post a reply
  Related Posts  to : Results of Java expressions for arithmetic operations
 Program for "Selection of arithmetic operations" in Java     -  
 java Expressions     -  
 Arithmetic Operators in java     -  
 Arithmetic data comparison and decompression java code     -  
 Regular Expressions and Patterns     -  
 String replace with Regular Expressions     -  
 event results from the clicking of a button     -  
 PHP Google search results grabber.     -  
 Arithmetic Promotion     -  
 Database Cashing tables results model     -