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