Enable contrast version

Tutor profile: Sharanya T.

Inactive
Sharanya T.
MS Computer Science student at NYU Courant
Tutor Satisfaction Guarantee

Questions

Subject: Java Programming

TutorMe
Question:

Why does a standard swap function not work in Java, even though it uses pass by reference?

Inactive
Sharanya T.
Answer:

Although objects and its variables are manipulated by reference, Java passes all the method parameters by value as a default. The argument references passed to the methods are only copies of the original references. Thus a swap function will not work

Subject: C++ Programming

TutorMe
Question:

What is the difference between class and struct?

Inactive
Sharanya T.
Answer:

The 2 main differences are that in classes the member variables are private by default where as in struct, all member variables are by default public. NOTE : The struct specified here is particular to C++ and is NOT about the structs in C. In C, a struct is just an aggregate of data, and has no class-like features: no methods, no constructor, no base classes, etc and does not support OOP

Subject: C Programming

TutorMe
Question:

Write a function that can accept any type of argument but returns an integer`

Inactive
Sharanya T.
Answer:

int func_name(void *ptr)

Contact tutor

Send a message explaining your
needs and Sharanya will reply soon.
Contact Sharanya

Request lesson

Ready now? Request a lesson.
Start Lesson

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.