Find the output of the following Java program. public class Test {
public static void main(String[] args)
{
int p=45, q=23, r=4;
q=p++ + (q++ *--r) + q++ + -q++ +p;
System.out.println(p+"$"+q+" "+r--);
}
Share
Find the output of the following Java program. public class Test {
public static void main(String[] args)
{
int p=45, q=23, r=4;
q=p++ + (q++ *--r) + q++ + -q++ +p;
System.out.println(p+"$"+q+" "+r--);
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
0 Replies