Enable contrast version

Tutor profile: Nitish D.

Inactive
Nitish D.
Graduate Student pursuing masters in Computer Engineering at NYU
Tutor Satisfaction Guarantee

Questions

Subject: Computer Networking

TutorMe
Question:

Which is faster between a router and bridge and why ?

Inactive
Nitish D.
Answer:

Bridge is faster as compared to Router as it operates in the Data Link Layer and makes the forwarding decision based on the MAC address but Router makes the decisions based on IP addresses because it operates in Network layer.

Subject: C++ Programming

TutorMe
Question:

How to check if a given number is palindrome or not ?

Inactive
Nitish D.
Answer:

using namespace std; int main() { int n, num, digit, rev = 0; cout << "Enter a positive number: "; cin >> num; n = num; do { digit = num % 10; rev = (rev * 10) + digit; num = num / 10; } while (num != 0); cout << " The reverse of the number is: " << rev << endl; if (n == rev) cout << " The number is a palindrome"; else cout << " The number is not a palindrome"; return 0; }

Subject: C Programming

TutorMe
Question:

How can you use structures as pointers ? Explain with the help of examples.

Inactive
Nitish D.
Answer:

#include<string.h> #include<stdio.h> struct book { char title[30]; char author[40]; int bookid; }; void printbook(struct book *books); int main() { struct book b1; struct book b2; strcpy(b1.title,"abc"); strcpy(b1.author,"xyz"); b1.bookid=7586; strcpy(b2.title,"abc"); strcpy(b2.author,"xyz"); b2.bookid=5435; printbook(&b1); printbook(&b2); return 0; } void printbook(struct book *books) { printf("Book title: %s\n",books->title); printf("Book author: %s\n",books->author); printf("Book number: %d\n",books->bookid); }

Contact tutor

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

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.