Can anyone solve this..my questions are in BOLD in the code commented beside the doubted lines..
public class plusTest {
public static void main(
String[] args) {
int[] a = new int[]{1, 2, 3, 4};
int b = 1;
System.out.println(b+++b); //HERE THE O/P IS 3
System.out.println("b="+b);
a[b++] = b += 0; // WHAT IS A[B++] HERE?? A[4] OR A[3]??
for(int i = 0; i < a.length; i++) {
System.out.print(a[i]);
}
}
} // WHY IS THE RESULT COMIG AS 1234
public class pp {
public static void main(String[] args) {
int x=1;
int y=2;
System.out.println(x+++y); // IS IT X++ + Y OR X + ++Y ??
System.out.println("x="+x);
System.out.println("y="+y);
}
}
HELP ME
thanx,
Deepa