“HAPPINESS SHOULD BE A FUNCTION WITHOUT ANY PARAMETERS”

NPTEL (14 Sep - 04 Dec ) | Week 3 : Program 5 Programming in JAVA Solutions 2020.

 



        Programming in JAVA.       




FOR Q3 AND Q4 CODE CLICK HERE 


Java Week 3: Q5

Complete the code segment to swap two numbers using call by object reference.

PROGRAM:

static int swap(Question t){
 
  int r;
  r=t.e1;
  t.e1=t.e2;
  t.e2=r;
 return 0; 
}

  WEEK-3 :Programming in JAVA
<<CLICK HERE FOR  WEEK 3:Quiz Assignment 3>> 
PLEASE SUBSCRIBE OUR CHANNEL.

FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.
Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%  correct solutions.

No comments:

Post a comment

If you have any problems related to solutions or any concept please let me know.