7. Program
//What will be the O/P ?
class G
{
public static void main(String args[])
{
int i = 0;
int j = i++ + i++ + i++ + i;
System.out.println(i);
System.out.println(j);
}
}
8. Program
//What will be the O/P ?
class H
{
public static void main(String args[])
{
int i = 0;
int j = i-- + i + i-- + i;
System.out.println(i);
System.out.println(j);
}
}
9. Program
//What will be the O/P ?
class I
{
public static void main(String args[])
{
int x = 0;
int y = x-- + x-- + x-- + x;
System.out.println(x);
System.out.println(y);
}
}
10. Program
//What will be the O/P ?
class J
{
public static void main(String args[])
{
int x = 0;
int y = x++ + x + x-- + x;
System.out.println(x);
System.out.println(y);
}
}
11. Program
//What will be the O/P ?
class K
{
public static void main(String args[])
{
int i = 0;
int j = i++ + i-- + i++ + i--;
System.out.println(i);
System.out.println(j);
}
}
12. Program
//What will be the O/P ?
class L
{
public static void main(String args[])
{
int i = 0;
int j = i++ + i + i-- + i;
System.out.println(i);
System.out.println(j);
}
}
Page....