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; 
}

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.

Copyright (c) 2020 Custom Programs All Right Reserved

Pages