A
Q. What is the output of this program?
Code:
public class operators
{
public static void main(String args[])
{
int p = 10;
System.out.println(++p * 5 + " " + p);
}
}
{
public static void main(String args[])
{
int p = 10;
System.out.println(++p * 5 + " " + p);
}
}
- Correct Answer - Option(C)
- Views: 17
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.