class T
{
public static void main(String args[])
{
int i = 0;
int j = ++i + i + --i + i;
System.out.println(i);
System.out.println(j);
}
}
20. Program
//What will be the O/P ?
class U
{
public static void main(String args[])
{
int i = 0;
int j = i++ + i + i-- + i + --i + i + ++i + i;
System.out.println(i);
System.out.println(j);
}
}
21. Program
//What will be the O/P ?
class V
{
public static void main(String args[])
{
int i = 0;
i = i++;
System.out.println(i);
}
}
22. Program
//What will be the O/P ?
class W
{
public static void main(String args[])
{
int i = 0;
i = i--;
System.out.println(i);
}
}
23. Program
//What will be the O/P ?
class X
{
public static void main(String args[])
{
int i = 0;
i = ++i;
System.out.println(i);
}
}
24. Program
//What will be the O/P ?
class K
{
static int test( )
{
int i = 0;
return i++;
}
public static void main(String args[])
{
System.out.println(test());
}
}