13. Program
//What will be the O/P ?
class M
{
public static void main(String args[])
{
int i = 0;
System.out.println(++i);
}
}
14. Program
//What will be the O/P ?
class N
{
public static void main(String args[])
{
int i = 0;
System.out.println(--i);
}
}
15. Program
//What will be the O/P ?
class O
{
public static void main(String args[])
{
int i = 0;
int j = --i;
System.out.println(i);
System.out.println(j);
}
}
16. Program
//What will be the O/P ?
class Q
{
public static void main(String args[])
{
int i = 0;
int j = ++i + i;
System.out.println(i);
System.out.println(j);
}
}
17. Program
//What will be the O/P ?
class R
{
public static void main(String args[])
{
int i = 0;
int j = --i + i + --i + i;
System.out.println(i);
System.out.println(j);
}
}
18. Program
//What will be the O/P ?
class S
{
public static void main(String args[])
{
int i = 0;
int j = --i + --i + --i + i;
System.out.println(i);
System.out.println(j);
}
}
Page....