1.

What are the values of a and b after the following function is executed,if the values passed are 30 and 50:in javaVoid paws(int a,int b){a=a+b;b=a-b;a=a-b;System.out.println(a+”,”+b);}

Answer»

ANSWER:

INPUT:-

a=30;

b=50;

a=30+50=80;

b=80-50=30;

a=80-30=50;

OUTPUT:-

50,30



Discussion

No Comment Found